Improving frames per second?

Blitz3D Forums/Blitz3D Programming/Improving frames per second?

elseano(Posted 2003) [#1]
Does any one know of any tips & tricks to improve FPS?
Also, why does my hieghtmap-generated terrain keep jogging?
Is that something to do with FPS, too?
Thanks.


Rob(Posted 2003) [#2]
TerrainShading terrain,0 ;disable terrain shading.
TerrainDetail terrain,2000,1 ;enable terrain morphing.

Now you'll have to do the shading via a lightmap or texture.


elseano(Posted 2003) [#3]
Hmmm...
Didn't seem to help much. Anything else?


Ross C(Posted 2003) [#4]
Well, if you've got anything that doesn't need to updated every loop, then don't update it every loop.

Also try and use the smallest texture size you can, whilst keeping the quality you want.

Could aslo try lowering the screen resolution.

And try not to disable mipmapping via ClearTextureFilters() unless it's really nessasary.

If your using alot of particles, you might wanna try and implement a single surface particle system.

You could reduce your camera range, but watch out for popping.

Try hiding objects, using hideentity (if they don't require collisions), when they aren't in view, or are being obstructed from view. Like say you've got a huge level, with many rooms. You obviously don't need to display every room in the whole level, as they won't all be seen.

As Rob said above, terrainshading can slow things down quite a bit.

Can't think of any more right now :)


sswift(Posted 2003) [#5]
Don't print 2d text over the scene. A lot of 2d text will slow many graphics cards to a crawl.

Use a realtici screen resolution. If your card can't handle 1600x1200 then don't use that res, use something realistic like 1024x768.


Rottbott(Posted 2003) [#6]
What does terrain shading actually *do*? It seems to make precisely zero difference whether I have it on or off, visually, speed-wise or otherwise.


sswift(Posted 2003) [#7]
Terrain shading allows you to light the terrain using blitz lights. It costs more to use because it has to recalculate the normals as the terrain changes shape.