Game Development Community

BUG: Light Rays cause VERY WIERD slowdown - sometimes

by Edward Rotberg · in Torque 3D Professional · 07/07/2010 (11:53 am) · 1 replies

We are seeing a very strange thing happen. It happens in all of our levels, but the numbers I'm reporting here are for a stripped down level. Our options include HDR and Light Rays, but not SSAO. When we start the level we are getting about 100 fps (give or take). We can move around this level with the w/s/a/d keys as well as the page up/down keys (which we have for moving up & down in Y) with out any degradation in the frame rate.

However, if we rotate the camera at all, the frame drops nearly in half!! Further, hitting Ctrl+Alt+Del (which causes a device reset) will cause the frame rate to jump back up to its previous 100 fps level.

We did some profiling and here is one anomaly that we have found:

Before the slowdown, we are seeing GFXD3D9OcclusionQuery_getStatus (called from LightFlarDataPrepRender) taking 50% of the time.

After the slowdown we are seeing GFXD3D9OcclusionQuery_getStatus taking up 75% of the time.

At this point we are baffled. Any ideas? At all?!?!

Thanks in advance,

= Ed =

#1
07/08/2010 (9:03 am)
More information: I've changed the title to add "BUG:" as this effect can be seen even in the default "Empty Room". I've also tried it and confirmed that it happens in the FPS Example.

Further testing shows that resetting the device does not always return the frame rate to it's high rate. In the Empty Room example, only forward motion is safe. Using the s/a/d keys will cause the frame rate to drop (unlike in our game/level). In all cases camera rotation will cause the frame rate drop.

= Ed =