View Full Version : what API can instead glBitmap move pos?
08-13-2011, 06:45 PM
I use "glBitmap( 0, 0, 0, 0, xmove, ymove , 0)" to move pos.But it is so bad.My Cpu is use 40%.But if I remove the code,CPU only use 5%.what API can instead glBitmap move pos?
08-14-2011, 04:53 AM
Have what API can instead glBitmap to move the current raster position?I use "glBitmap( 0, 0, 0, 0, xmove, ymove , 0)" to move the current raster position.
But I find the API only use once,CPU use add around 20%.
Speed is so bad.
08-14-2011, 05:00 AM
08-14-2011, 05:14 AM
glRasterPos is used to position it.
If you find that it is slow, it is possibly that you are not in the fast path. It might be just a software emulation that turns a glBitmap call to a texture and renders it as triangles.
You should do what games do to stay on the fast path. Games like Quake series and Doom 3.
08-14-2011, 06:19 AM
Thanks.I use'glRasterPos2f(xmove,ymove)'instead it .Speed is added so much.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.