Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
sprite hardware limitations   Message List  
Reply | Forward Message #11225 of 15019 |
Re: [gbadev] sprite hardware limitations

From: "Phil Stroffolino" <pstroffo@...>
> I've seen listed figures for "max number of ROZ sprites per scanline"
> but what happens when you mix normal sprites with some smaller number
> of ROZ sprites? Is there a simple rule I can safely use as a
> constraint? Let's say for example I have (A) 32x32 sprites, and (B)
> double size 32x32 sprites with ROZ enabled. What combination of (A)
> and (B) will not cause problems?

I've also seen the numbers posted here recently but I don't have them readily
handy. However, you should be able to get a rough idea by making some
simple calculations. The limitation is on the amount of time it takes to
process
each sprite. So if the numbers are that x 32x32 sprites or y ROZ sprites can
be rendered, you can see that the time it takes to render a ROZ sprite is x/y
times the amount of time it takes to render a normal sprite.

Since the total time's units are irrelevant here, assume that you have a total
time
of x units and it takes 1 unit to render a normal sprite.

T = A + B * (x/y)

if T (time to render) <= x, you should be OK. If T > x, either you will have
problems,
the above assumptions are incorrect, or the starting numbers are incorrect.

From experience with similar hardware in the SNES, some of the sprites will not
appear
on that scan line, or may only partially appear. Also, if only a few scan lines
have the
convergence of too many sprites, the sprites will appear fine both above and
below those
lines.

I would also suspect that the numbers of sprites that can be rendered changes
depending
upon how many background layers are in use.

- John





Thu May 2, 2002 7:16 pm

johnse98072
Offline Offline
Send Email Send Email

Forward
Message #11225 of 15019 |
Expand Messages Author Sort by Date

I'm working on an isometric view RPG similar to "Breath of Fire 3" that supports freely rotating the screen in any direction (through 64 angles). It uses...
Phil Stroffolino
pstroffo
Online Now Send Email
May 2, 2002
6:13 pm

From: "Phil Stroffolino" <pstroffo@...> ... I've also seen the numbers posted here recently but I don't have them readily handy. However, you should be...
John Seghers
johnse98072
Offline Send Email
May 3, 2002
8:29 am

max sprites per line: width normal obj rotation/scaling obj 8 128 47 16 76...
Neil Holmes
n1nge
Offline Send Email
May 3, 2002
8:37 am

... I believe that sprites are unaffected by backgrounds in use. In fact, AFAIK, the only effect BGs ever have on sprites comes in BG mode - whether sprites...
Fatty diZilla
johnisaheadcase
Offline Send Email
May 3, 2002
9:25 pm

Surely setting affine mode to ST_OAM_AFFINE_ERASE for unused OAMs must be better than placing them offscreen as suggested below. That way they will need no...
Emil Arkman
emil_arkman
Offline Send Email
May 6, 2002
3:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help