[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] groups drawing optimization



Hi all.

I've a non yet optimized game that works on level bigger that the screen.
So on my levels, sprites can be found outside the viewable part of the screen.

I'm just wondering if adding some code that didn't draw those sprites
when they are outside the viewable area can be good, or pygame low
level procedures do this itself.

What I'm thinking is to rewrite the draw method of the Group class, to
skip all sprites that aren't viewable.

Any comment about this? Is a useless work?

-- 
-- luca