Commits on Source (2)
-
toaster authored
* Replace the texheight parameter provided directly to it with a previously existing (now renamed) global used for the same purpose, so that it can be used as an interchangeable function pointer with R_DrawMaskedColumn. * Using the above, optimise R_DrawVisSprite to call a function pointer in a tighter loop rather than check SC_VFLIP each time around. * SHORT macro can involve repeated operations; calculate once and put in memory for both RANGECHECK and papersprite. * Remove irrelevant range check (already covered by existing range check immediately above) from R_DrawFlippedMaskedColumn and R_DrawMaskedColumn. * "Warning: avoiding a crash in %s %d" is a terrible error message, and it chips away at the tightness of the loop just for something most people will never see printed. Replace with a PARANOIA I_Error in case someone actively wants to go hunting for its cause.
Showing
- src/hardware/hw_clip.c 2 additions, 1 deletionsrc/hardware/hw_clip.c
- src/hardware/hw_main.c 23 additions, 19 deletionssrc/hardware/hw_main.c
- src/hardware/hw_main.h 1 addition, 2 deletionssrc/hardware/hw_main.h
- src/hardware/r_opengl/r_opengl.c 17 additions, 21 deletionssrc/hardware/r_opengl/r_opengl.c
- src/m_menu.c 1 addition, 1 deletionsrc/m_menu.c
- src/p_user.c 6 additions, 9 deletionssrc/p_user.c
- src/r_main.c 26 additions, 9 deletionssrc/r_main.c
- src/r_main.h 1 addition, 0 deletionssrc/r_main.h
- src/r_segs.c 7 additions, 15 deletionssrc/r_segs.c
- src/r_things.c 109 additions, 103 deletionssrc/r_things.c
- src/r_things.h 5 additions, 1 deletionsrc/r_things.h