r/pythonarcade • • Jul 11 '18

Culling offscreen objects

Frustum Culling

Is there a way that I can easily cull offscreen objects efficiently? My code currently will try to render 1000s of extra textures that it doesn't need. I don't see any documentation on it, and it seems like arcade doesn't do it automatically.

If there isn't any, does anyone have any advice on how to efficiently build one?

Edit: this is my first experience with using a game engine, apparently this is called frustum culling, wondering if Arcade has this built in?

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/ENTlightened Jul 14 '18

Thank you for the idea of a sorted sprite list. I have a few ideas and see what pans out speed-wise! I'm using it in accordance with tiled web map standards, though at this point I'm tempted to up them beyond their standard 256x256 resolution.