C
C
Cat in coat2019-06-19 21:17:18
Java
Cat in coat, 2019-06-19 21:17:18

Draw object outside Canvas or check coordinates and skip?

There is a Canvas on which I draw a map of the game.
The map consists of many sprites, some of which are located outside the screen, i.e. their coordinates do not fall into the Canvas area.
What is better in terms of performance: draw these sprites outside the drawing area or check their coordinates and if they are outside the area, then skip?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-06-20
@zagayevskiy

Miss

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question