it's basically a simple class / struct that saving opengl state, if state changed then we redraw it, it might be improves performance a bit. the problem is i want to make a class to check all state (glnormals, glmaterials ..), but it could make a fps drops while rotating (not sure about roaming around).
i attached a patch, it's only track lightning since it comes out first in gdebugger, i think it's sun
checking opengl calls state
checking opengl calls state
- Attachments
-
- 0001-testing-opengl-state-checker.patch
- (6.17 KiB) Downloaded 220 times
Re: checking opengl calls state
It is a good idea, and we already have code that does similar things in lib/ivis_opengl/piestate.cpp, so it should go in there. Also, please make sure your patch does not contain spurious changes, such as randomly changing the indentation of unrelated comments...
Re: checking opengl calls state
i think it's because LF CLRF thing, not sure how to ignores it.and do we have enum / struct that saving coordinates / location in x,y,z using glfloat before i made a new onePer wrote: such as randomly changing the indentation of unrelated comments...
Re: checking opengl calls state
lib/ivis_opengl/piematrix.cpp ?Ezio wrote:do we have enum / struct that saving coordinates / location in x,y,z using glfloat before i made a new one
Also see #3935.