Making Panda3D startup snappy

pandalogomeanHere’s a tip posted by Gogg on how to make Panda3D start really fast. Don’t get me wrong it’s not slow, especially on the second and subsequent runs, but there’s always room for “faster”. So, make sure you:
  • Use Panda3D 1.7.0, there was some CPU measurement code prior to that that slowed Panda startup a lot
  • On Windows, on any API, (If your build has DX support, even if you are using OpenGL) use the following config setting: request-dxdisplay-information #f
  • On DirectX9, use the following setting: dx-count-all-cards-memory #f

With these three things you’ll be looking at a startup time of 0.1 seconds (depends on your computer, of course) on Windows with Directx, and 0.5 with OpenGL in Windows Vista/7 and 0.1 with Windows XP. OpenGL always initializes slower in Windows Vista/7 and there’s nothing you can do, it’s like this for all games and engines (I’ve only tested with nvidia cards.)

Gogg original page is here: http://gogg.p3dp.com/