08 December 2010

well, that was pretty silly

after drawing the background there was suddenly a significant lag in gameplay
so i spent a few days optimizing the code thinking there was a lot of
redundant commands like checking every frame for a hidden variable or
fetch an invisible ball that does not exist or possibly calculating positional
collision for all characters

well, fetching 100 invisible balls didn't cause the lag

after some looking around teh interwebs i has discovered that apparently
vector graphics can cause lag, whut ? i refuse to believe graphics that
require the computer to mathematically calculate every double angle of
thousands of points stretching a wide area of effect for every 24 frames
is more cpu intensive than displaying some bitmap graphics

so i tried to prove them wrong by doing so


my beautiful vector, -sniff-
and what did i get ?
oh, an improvement
daaaayuuuum,
but that does explain why a lot of games are pixel sprites

anywho, being stubborn and such i just went back
and redrew all my backgrounds so they aren't
too vector heavy ish