View Full Version : Performance Issue
Wenhui
05-24-2010, 06:47 PM
Hello guys,
Anybody give me some suggestion to improve the performance of my drawing? Or give me some reference
thanks,
Wenhui
Lord crc
05-24-2010, 07:48 PM
Have you tried a wider pencil?
Seriously, if you want any sensible replies you will have to give a lot more detailed information on how you're currently drawing things.
ZbuffeR
05-25-2010, 01:34 AM
First have a read here for basics :
http://www.opengl.org/wiki/Performance
Then for more precise help, as said Lord crc, you will indeed have to give details about your hardware gpu/vram/cpu/ram/OS, how you draw things, what you draw, what rendering speed you expect, etc.
glfreak
05-25-2010, 06:46 AM
Rule of thumb: Keep the GPU always busy :)
Minimize redundant state changes.
Batch geometry that share the same textures and shaders or rendering states
Use triangle strips whenever possible.
Use indexing
Use only VBOs
ZbuffeR
05-25-2010, 07:34 AM
Triangle strips are not that good. Try simple indexed triangles with vertices in "hilbert curve" order instead, takes advantage of any size of vertex cache.
Wenhui
05-25-2010, 11:27 PM
Thanks, guys
Gomu.Wang
05-26-2010, 06:42 PM
And another powerful tool: use display list as possible as you can.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.