02-07-2026, 03:58 AM
(This post was last modified: 02-07-2026, 03:58 AM by Unseen Machine.)
Okay, and you know i love ya and your work but for more optimising
Youre disabling things and the reenabling them in your GL sub but also enabling and disabling them in your individual render functions...just have each function control what they need/dont need.
you should only use loadidentity once per loop (after the glclear), then use glpushmatrix/glpopmatrix when rendering things. The above code makes two calls but at no point have you translated or rotated anything after the position reset...
You should merge your terrain and sky into a single gllist
dont use glflush, use glfinish
Other than that im glad to see youve got your clipping planes setup properly/better now...keep up the good work! And please dont take my comments to harshly!
Unseen
Youre disabling things and the reenabling them in your GL sub but also enabling and disabling them in your individual render functions...just have each function control what they need/dont need.
Code: (Select All)
_glLoadIdentity
_glLightfv _GL_LIGHT0, _GL_POSITION, glVec4(0, 0, 1, 0) 'ha tolem vilagit
_glClearColor .04, .04, .04, 1
_glLoadIdentity
you should only use loadidentity once per loop (after the glclear), then use glpushmatrix/glpopmatrix when rendering things. The above code makes two calls but at no point have you translated or rotated anything after the position reset...
You should merge your terrain and sky into a single gllist
dont use glflush, use glfinish
Other than that im glad to see youve got your clipping planes setup properly/better now...keep up the good work! And please dont take my comments to harshly!
Unseen

