Skip to main content
gamedev.net
🔒 Locked

Drawing techniques

Started by Kerkhoff 1 reply 1k views
Original Post
Kerkhoff
Kerkhoff
Somebody has a good drawing technique? I run my program that is redraw everytime and my mem usage explode = ( if I draw the object only when it receives event...the mem usage increase with the amount of events that I fired. = ( like...each draw...1mb of memory = ( thanx
Rasmadrak
Rasmadrak
Dont reload your textures, objects etc each frame...
Load resources only once, and then simply draw it. :D

check out nehe.gamedev.net for great tutorials on OpenGL!

Cheers!
"Game Maker For Life, probably never professional thou." =)
StPapyna
StPapyna
Do not use the
glTexImage2D in your draw() function,that's means the GL will upload the texture data each frame.

Do not compute the static data(Vertex Index and so on)
That's means GL will compute those static data each frame too. Compute them then store in an array,just use it.

Try use the glEnableClientState, but the use time should be small.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.