Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rendering by Ogre
04-11-2010, 06:56 PM,
#8
 
Many tracks are modeled with a lot of very small objects that can probably be combined for better performance in situations where the draw calls are expensive. On my test machines it was actually cheaper to not do much combining and take the cull advantage (especially with newer ATI drivers), but there's object combining code in VDrift, it's just disabled. If you look in GAME::LoadTrack, the third to last argument to DeferredLoad is false, you can change that to true to do more object combining:

track.DeferredLoad(pathmanager.GetTrackPath()+"/"+trackname, pathmanager.GetEffectsTexturePath(), *tracknode, settings.GetTrackReverse(), settings.GetAnisotropy(), settings.GetTextureSize(), graphics.GetShadows(), false, info_output, error_output)

EDIT: this is wrong. I forgot that this doesn't actually combine meshes, it just combines scenegraph elements.

Using a texture atlas you could combine even more objects.

I dislike the Ogre architecture, and enjoy writing rendering systems myself anyway, so I'm going to continue to develop VDrift's rendering system... but perhaps there is room for two rendering systems?
Reply


Messages In This Thread
rendering by Ogre - by CrystalH - 04-09-2010, 04:08 PM
[No subject] - by NaN - 04-10-2010, 02:46 AM
[No subject] - by CrystalH - 04-10-2010, 06:04 AM
[No subject] - by NaN - 04-10-2010, 11:00 AM
[No subject] - by CrystalH - 04-10-2010, 01:42 PM
[No subject] - by NaN - 04-11-2010, 05:39 AM
[No subject] - by CrystalH - 04-11-2010, 02:28 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-11-2010, 06:56 PM
[No subject] - by NaN - 04-12-2010, 07:23 AM
[No subject] - by CrystalH - 06-06-2010, 01:03 PM
[No subject] - by MADBAD - 06-06-2010, 02:55 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-06-2010, 04:16 PM
[No subject] - by CrystalH - 07-31-2010, 02:09 PM
[No subject] - by NaN - 08-02-2010, 06:59 AM
[No subject] - by charlieg - 08-02-2010, 07:40 PM
[No subject] - by charlieg - 08-06-2010, 10:46 AM
[No subject] - by CrystalH - 08-06-2010, 12:25 PM
[No subject] - by Thib25 - 08-07-2010, 04:58 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-07-2010, 11:44 PM
[No subject] - by CrystalH - 08-08-2010, 11:36 AM
[No subject] - by Thib25 - 08-08-2010, 12:12 PM
[No subject] - by CrystalH - 08-08-2010, 01:11 PM
[No subject] - by CrystalH - 09-19-2010, 02:16 PM
[No subject] - by CrystalH - 11-15-2010, 12:34 PM
[No subject] - by CrystalH - 11-24-2010, 06:44 AM
[No subject] - by NaN - 11-24-2010, 10:23 AM
[No subject] - by CrystalH - 11-24-2010, 12:42 PM
[No subject] - by NaN - 11-24-2010, 01:23 PM
[No subject] - by CrystalH - 01-02-2011, 03:35 PM
[No subject] - by NaN - 01-02-2011, 05:38 PM
[No subject] - by CrystalH - 01-02-2011, 06:28 PM
[No subject] - by NaN - 01-03-2011, 08:16 AM
[No subject] - by joevenzon_phpbb2_import3 - 01-04-2011, 01:15 AM
rendering by Ogre, Stunt Rally - by CrystalH - 01-08-2011, 07:47 AM
[No subject] - by charlieg - 01-10-2011, 10:02 PM
[No subject] - by CrystalH - 04-03-2011, 08:22 AM
[No subject] - by NaN - 04-03-2011, 09:59 AM
[No subject] - by CrystalH - 04-03-2011, 11:28 AM
[No subject] - by NaN - 04-03-2011, 01:35 PM
[No subject] - by CrystalH - 04-03-2011, 02:58 PM
[No subject] - by NaN - 04-03-2011, 03:18 PM
[No subject] - by CrystalH - 04-03-2011, 03:32 PM
[No subject] - by skankerror - 04-04-2011, 11:06 AM
[No subject] - by CrystalH - 04-04-2011, 01:08 PM
[No subject] - by nomoo - 04-04-2011, 03:44 PM
[No subject] - by skankerror - 04-04-2011, 03:54 PM
[No subject] - by CrystalH - 08-01-2011, 01:58 PM
[No subject] - by NaN - 08-02-2011, 09:11 AM
[No subject] - by NaN - 08-02-2011, 09:36 AM
[No subject] - by CrystalH - 08-02-2011, 03:59 PM
[No subject] - by NaN - 08-02-2011, 04:13 PM
[No subject] - by CrystalH - 08-02-2011, 04:34 PM
[No subject] - by CrystalH - 10-19-2011, 03:09 PM
[No subject] - by NaN - 10-19-2011, 05:39 PM
[No subject] - by NaN - 10-22-2011, 12:07 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-22-2011, 02:04 PM
[No subject] - by CrystalH - 01-04-2012, 06:06 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-05-2012, 02:23 PM
[No subject] - by CrystalH - 01-05-2012, 03:38 PM
[No subject] - by CrystalH - 02-22-2012, 06:43 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)