I have a code like this:
the total time to draw the scene 200 times is very high. Could you give me some advices about different techniques to reduce the total time? (in fact a draw different bitmap files in each display)
Another question: is there a way to select the software or hardware acceleration in opengl?
What are you trying to do? Draw a series of images onto the screen?
Hardware acceleration is used automatically if it’s available.
Just add a counter that represent a time unit such as milisecs and then every so many milisecs, you can do the drawing…
That is a way to sync things in an engine…
My aim is not to synchronize but the display the scene as fast as I can. For this I search some ways to display the scene faster than the code above.
seems to me you have two choices:
- reduce the size of the bitmap file
- buy a faster machine