sezero / uhexen2

Hexen II: Hammer of Thyrion -- A cross-platform port of Hexen II game.
https://sourceforge.net/projects/uhexen2/
76 stars 14 forks source link

Some performance improvements #34

Closed BSzili closed 2 years ago

BSzili commented 2 years ago

When looking at the particles I noticed that the snow used Cvar_VariableValue instead of the actual variables which caused a small performance drop in the Tibet levels of the mission pack. I also applied the this unrelated tweak to PF_findradius which avoids calculating the square root: https://github.com/sezero/quakespasm/commit/a1f522701a7969d2f9df77bd94a14527398bfd53. I left the original code there commented out just in case it causes any side effects, but so far I haven't noticed any.

sezero commented 2 years ago

I removed the commented out parts from FindRadius and applied Andrei's patch as is. The patchset is in, thanks!