VDrift.net
  Home  :  Chat  :  Links  :  Polls  :  Media Gallery  :  Forum  :  Calendar  :  Advanced Search  :  Site Statistics   : VDrift Cars  
 Welcome to VDrift.net
 Thursday, July 29 2010 @ 01:22 PM PDT
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Framerate optimizations in the trunk, R2256+

 
Post new topic   Reply to topic    VDrift Forum Index -> Development
View previous topic :: View next topic  
Author Message
joevenzon



Joined: 29 Jun 2005
Posts: 2309
Location: Seattle, WA

PostPosted: Mon Dec 15, 2008 11:27 pm    Post subject: Framerate optimizations in the trunk, R2256+ Reply with quote

With R2256 I committed a bunch of optimizations to try to speed up the framerate, especially on dense tracks with a lot of objects. Part of the optimizations traded CPU calculations for GPU calculations -- that is, less computation for the CPU but more for the GPU. On my system (AMD X2 3800+, geforce 7900GT) the framerate improvements were enormous; in Kyalami for example my framerate went from about 30 FPS to 100 FPS in one area I was using as a benchmark.

I'm curious if anyone sees a DECREASE in framerate with the optimizations in R2256. If you want to do a comparison, you can disable the optimizations by changing src/track.cpp line 862 to:
Code:
const bool optimize = false;


If the optimizations decrease anyone's performance I'll make it a display option; otherwise I'd rather not.
Back to top
View user's profile Send private message Visit poster's website
FFuser



Joined: 21 Jul 2005
Posts: 136
Location: Antwerp, Belgium

PostPosted: Tue Dec 16, 2008 11:59 am    Post subject: Reply with quote

It give an increase for me too:

Kyalami
30-40 FPS With optimizations (drops once to 25 FPS)
25-36 Without (drops once to 20 FPS - at the same place as above)

Note that my settings are rather low (distance level low) because I have a bad graphics card:

intel i915 / 945 GM
Processor: intel Core 2 Duo (2.16 Ghz) 64-bit

Note that I ran in single threaded mode:
multithreaded crashes on me:
Quote:
INFO: Multithreading initialized
vdrift: i915_vtbl.c:344: i915_emit_state: Assertion `0' failed.
SIGABRT detected, releasing the mouse
Terminated
Back to top
View user's profile Send private message
joevenzon



Joined: 29 Jun 2005
Posts: 2309
Location: Seattle, WA

PostPosted: Tue Dec 16, 2008 10:37 pm    Post subject: Reply with quote

Hey, thanks for the data point -- since this improved your framerate even with a fast CPU and slow GPU it sounds like this optimization was a win.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VDrift Forum Index -> Development All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
 Copyright © 2010 VDrift.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.22 seconds