Have a question about entity and when is it visible.
In my scenario I have many entities outside of what user can see, basically “outside” of scene(lest say y position is -1000), for example.
The problem is Qt still recognizes this entity as visible.
Is there an easy to way to tell if entity is really visible, like on the screen?
Or I need to do things like
bodyAt to find the x and y if there are visible to the user.
I have some logic which should work only when entity is visible, but it works when user doesn’t see the entity just yet, so that causes some issues.
I am also concerned about performance.
From what I know Qt doesn’t execute some operations for entity if it’s not visible, in this case(entity not visible for user) those optimizations are not active but they should?