Well everything takes up resources. The key to good performance is
minimizing slow actions. One of the reason why you see loading screens is
because of the cost of retrieving data from disk.

So with tiles and backgrounds, the cost of drawing a couple tiles off-screen
on a modern computer is nothing in terms of cost. Remember that even large
images are relatively small in size compared to the amount of memory that
is available.

Now, if we are talking about a HUGE backgrounds (more then 1gb for example).
And you wanted the world to be seemless. You could create a map system where
the whole background is subdivided into 100 different pieces (10 x 10) and
have the system pre load the neighboring (8) backgrounds when the player is
on any map.

On Sat, Aug 6, 2011 at 7:20 PM, [email protected] <[email protected]> wrote:

> I was wondering what the general method was for using tiles with scrolling.
> I understand you make the background move, but if you end up drawing the
> background outside the screen, doesn't that take up more of the computer's
> resources?
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
>



-- 
Incoherently,
Ricky Ng

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to