Not logged inOpenClonk Forum
Up Topic network game

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Zapper
I moved certain stuff that I can do only once (or I don't need at all) out of the PerformMesh-function. For example the gluPerspective and related calls. But something else I did was not setting and resetting certain OpenGL states every time I call PerformMesh (enable GL_NORMALIZE, enable LIGHTNING, ShadeModel = SMOOTH, the setup of the light and all that small stuff).
Now I only set these states when the last thing I rendered was not a mesh (and reset them before rendering anything else, of course).

I just assume that I sometimes need to render >50 meshes in a row - without always having to change certain OpenGL states

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill