Top tips for avoiding slowdown

Blitz3D Forums/Blitz3D Beginners Area/Top tips for avoiding slowdown

mkg(Posted 2007) [#1]
Anyone care to share their tips for what features of blitz to avoid or use sparingly to avoid your game grinding to a halt on all but the best pc's? Any good practices or gotchas?


Beaker(Posted 2007) [#2]
1) Use alpha entities/sprites/textures sparingly.

2) Combine similarly textured nearby static objects into one surface where possible.

3) Use a single surface sprite system if you are using a lot of sprites.

4) Use linepicks sparingly.

5) Use EntityDistance() in preference to homemade distance functions where possible.

6) If you can get away with it use MD2s over skinned B3Ds. If you can't then minimize bone counts in skinned entities.


puki(Posted 2007) [#3]
Some people put a Delay 1 (etc) in their main loop, just to ease the load on the CPU. It stops Blitz from trying to hog too much processor time.


jfk EO-11110(Posted 2007) [#4]
Try to use not too many polygons in total, shared by not too many surfaces. Avoid multiple large (almost screen-covering) overlapping alpha/mask objects. Allow the renderer to skip distant things, eg. by using a low camera range and a clustered map mesh. Design the levels on a low end machine.