Wyrmsun
Wyrmsun copied to clipboard
OpenGL in Wyrmsun
I noticed that everything is faster, including loading, when using OpenGL instead of SDL. How did you get OpenGL to work so smoothly?
OpenGL is itself faster than SDL1 rendering, I don't recall doing any performance improvements regarding to it compared to Stratagus. Maybe OpenGL is slower in Stratagus because of the calculations for the OpenGL color-cycling, which were implemented there but I didn't port to Wyrmgus?
Not sure. But loading in wargus with opengl is slower, whereas in wyrmsun its faster. I'm gonna check out your code and see if I can't make changes to stratagus.
Hmm, that's strange, Wyrmsun has more units, more player colors, and it also does skin color and hair color conversions for some units, so if anything it should be slower.
Maybe it's the color-cycling, Stratagus might be caching a version of every unit's sprite for each color-cycling state.
That' strange to hear as per this ticket loading with OpenGL is longer. Haven't checked it by myself, though.
I'll check again, but indeed last I tried loading with OpenGL was very slow.
@KroArtem I think DinkyDyeAussie is using Windows, that issue seems to be limited to Linux.
OpenGL load time on my saved game was 29.04 seconds. SDL load time on the same save was 40.39 seconds. Plus using SDL things started choking up a bit and the mouse and animations weren't smooth at all.