Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
profiling
03-25-2010, 10:20 PM,
#3
 
Hum, I know the scenegraph is a little heavier than it needs to be, but I'm surprised it's seeing so many samples in GetCollapsedDrawList. The only scenegraph nodes we should be collapsing per frame are the non-static objects. The static track objects only get collapsed once: at the end of GAME::LoadTrack. You're profiling the release optimized version, right? I wonder if the VC9 compiler is missing some optimization opportunities. You might want to try compiling with GCC and using the GNU profiler, then comparing the results. If you do "scons profiling=1" it'll compile with release optimizations, debugging symbols, and profiling all enabled (the framerate is lower with profiling enabled but it's still very playable). On my computer the frustum culling seems to take the longest. Moving to a hierarchical culling system would speed that up. I've also been thinking about how to make the scenegraph a little lighter weight.

About the texture stuff, I've always heard that OpenGL render state calls are pretty lightweight. Also, I assumed that the driver would take care of doing a NOOP instead of switching from a texture to an identical texture, but I could add that to VDrift pretty easily if it'd improve framerate (I'm not so sure it would). I've been meaning to get VDrift under perfHUD, but decided not to worry about it just yet since I'm planning on rewriting the rendering engine anyway.
Reply


Messages In This Thread
profiling - by NaN - 03-25-2010, 08:47 PM
[No subject] - by NaN - 03-25-2010, 08:50 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-25-2010, 10:20 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-25-2010, 10:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-25-2010, 10:47 PM
[No subject] - by NaN - 03-26-2010, 03:33 AM
[No subject] - by NaN - 03-28-2010, 06:18 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-28-2010, 11:48 AM
[No subject] - by NaN - 03-28-2010, 07:28 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-30-2010, 10:22 AM
[No subject] - by NaN - 05-19-2010, 06:57 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-20-2010, 06:42 PM
[No subject] - by NaN - 05-21-2010, 03:49 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-21-2010, 12:09 PM
[No subject] - by NaN - 07-19-2010, 04:25 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-19-2010, 10:36 AM
[No subject] - by NaN - 12-23-2010, 09:32 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-23-2010, 09:08 PM
[No subject] - by thelusiv - 12-24-2010, 10:42 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-24-2010, 01:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)