I don´t have much experiences in gamedevelopment on devices with low computing power, and I wonder if there are some good designpaterns or rules for the software architeture to write a fast animation loops.

In my first try my canvas class get´s very big and complex, because I did not realy use obj orientated programming, it was more structurised -> a very long if else branche

now I think about using something like mvc -> architecture, but I don´t know what this will effect on performance, especially because I have to do a lot of collision detection..