Advertisement

uh oh... my engine is slowing down

Started by April 09, 2001 02:41 PM
6 comments, last by Nibbles 23 years, 7 months ago
Hi, Can anyone give me a few tips on optimization? Or point me to a good resource. I haven''t an idea how to speed up bad code Thanks, Scott "If you try and don''t succeed, destroy all evidence that you tried."
Batch polygons by state changes. Do some form of visibilty tests. Minimize DrawPrimitive calls.

ECKILLER
ECKILLER
Advertisement
http://www.frii.com/~martz/oglfaq/

http://members.xoom.com/myBollux
You might have tried this already, but you could implament some type of hidden surface removal, or back face removal. Though I''ve never done it myself, I''ve heard that the dot product is a good way to go for that.

Dang that dot product is so useful.

The Kid

I don''''t know what the future holds, but I know who holds the future.
I don''t know what the future holds, but I know who holds the future.
Keep the state changes to a low.
Celeron ][ 566 @ 850256MB PC-100 CAS2 RAMDFI PA-61 Mainboard (250MB memory bandwidth sucks, it should be 500MB)ATI Radeon 32MB DDR LEWindows 98SE
what do u mean by state changes?

Scott
Advertisement
State change is when you change a state. For example, the current texture.


ECKILLER
ECKILLER
Or enabling stuff when it isn''t needed
Celeron ][ 566 @ 850256MB PC-100 CAS2 RAMDFI PA-61 Mainboard (250MB memory bandwidth sucks, it should be 500MB)ATI Radeon 32MB DDR LEWindows 98SE

This topic is closed to new replies.

Advertisement