mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-16 07:21:28 +00:00
4cd0d3d454
- optimized the math to get a plane equation from a linedef. The original code used a generic algorithm that knew nothing about the fact that Doom walls are always perfectly vertical. With this knowledge the plane calculation can be reduced to a lot less code because retrieving the normal is trivial in this special case. - use the SSE2 rsqrtss instruction to calculate a wall's length, because this is by far the most frequent use of square roots in the GL renderer. So far this is only active on x64, it may be activated on 32 bit later as well, but only after it has been decided if 32 bit builds should be x87 or SSE2. # Conflicts: # src/gl/dynlights/gl_dynlight.cpp # Conflicts: # src/g_shared/a_dynlightdata.cpp |
||
---|---|---|
.. | ||
gl_bsp.cpp | ||
gl_clipper.cpp | ||
gl_clipper.h | ||
gl_decal.cpp | ||
gl_drawinfo.cpp | ||
gl_drawinfo.h | ||
gl_fakeflat.cpp | ||
gl_flats.cpp | ||
gl_portal.cpp | ||
gl_portal.h | ||
gl_renderhacks.cpp | ||
gl_scene.cpp | ||
gl_scenedrawer.h | ||
gl_sky.cpp | ||
gl_skydome.cpp | ||
gl_sprite.cpp | ||
gl_spritelight.cpp | ||
gl_vertex.cpp | ||
gl_wall.h | ||
gl_walls.cpp | ||
gl_walls_draw.cpp | ||
gl_weapon.cpp |