- Added an assembly version of rt_shaded4cols, since that's the main decal
drawing function. The most improvement came from being able to turn some constant variables into immediate values with self-modifying code, but I also managed to reorder it to make it a little faster. It's about 9% faster than VC++'s code and 19% faster than GCC's code. That's not a huge improvement (for VC++), but at least it's measurable. - Removed the solid fill "optimization" from rt_shaded4cols(), because in my testing, it didn't help any and in fact, hurt just a little bit. - In the name of simplification, all the rt_tlate* drawers were changed to do the translation in one step and the drawing in another. This lets me call the untranslated drawer to do the real drawing instead of mostly duplicating them. Performance wise, there is practically no difference from before. SVN r771 (trunk)
This commit is contained in:
parent
24100c25a9
commit
9cb674c60c
8 changed files with 361 additions and 493 deletions
|
|
@ -205,7 +205,7 @@ void (*spanfunc) (void);
|
|||
void (*hcolfunc_pre) (void);
|
||||
void (*hcolfunc_post1) (int hx, int sx, int yl, int yh);
|
||||
void (*hcolfunc_post2) (int hx, int sx, int yl, int yh);
|
||||
void (*hcolfunc_post4) (int sx, int yl, int yh);
|
||||
void (STACK_ARGS *hcolfunc_post4) (int sx, int yl, int yh);
|
||||
|
||||
cycle_t WallCycles, PlaneCycles, MaskedCycles, WallScanCycles;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue