-
Committer:
Bradley Harms
-
Date:
2011-01-09 23:10:12 UTC
-
Revision ID:
themusicguy123@gmail.com-20110109231012-pbyo647qupp27ux2
- >
I wasn't able to deduce the isolate the cause of the slowdown that appeared
due to changes in revision 72 (ie. making cameras into entities, moving
screen filtering functions into the cameras, updating the engine to work with
the new system) but decided to just re-add them all anyway. I will just
attempt to optimize the code and search for slowdown as I can.
- >
In an attempt to speed things up, I tried creating separate rect constructors
for each of the different ways of creating a rect (from a pair, from a quad,
from a pair of pairs, etc.).
- >
The optimizations for access to the `pos` and `size` rect attributes was
removed to make things easier. (All attributes should behave the same as
before, but now the access speeds are all slightly different.)
- >
A few of the calls to the default rect constructors have been replaced with
calls to the new, optimized constructors. (Little improvement has resulted,
but I will keep puting more in.)