Home | Forums | What's new | Resources | |
Limit on maximum number of sprites? |
slinga - Jan 5, 2005 |
slinga | Jan 5, 2005 | |||
It's not the size of the source file I was referring to. In spr_data.c (or whatever file you define your sprites), you have list the sizes of the previous sprites you've used. So I'm using 40,000 pixels * 32 bits per pixel = a whole lot of bits. I think the saturn has less than 2 megs of usual memory. Edit: Just to clarify, I have no clue what I'm doing, I'm flying blind :thumbs-up: |
Omni | Jan 5, 2005 | |||
Well, that would be 40000 X 4Bytes = 160,000 or 160K, right? Is that too much data? I thought the Saturn had near 2 megs of RAM. Flying blind is a good term. I like that term Are you just defining the sizes of the sprites in this file, or are you really writing out the data pixel by pixel? |
slinga | Jan 6, 2005 | |||
A bit of an update... Seems like the issue I was having was due to the sprites themselves that I was trying to display. It wouldn't let me display a 8*1 pixel sprite, but 8*2 was fine. Now the sprites I need display fine in Giri Giri. On a real saturn none of my sprites display, but all of the text output is there. This is odd because in an earlier build (with fewer sprites) my sprites displayed correctly. I'll have to spend more time looking into, but I think it's a limit of some sort. |
vreuzon | Jan 7, 2005 | ||||
Yes, all heights and widths combinations are not usable for sprites. Give a look at the sgl tutorial. (oh, and my size calculation was wrong, in case you didn't notice...) |
slinga | Jan 8, 2005 | |||
vreuzon: I removed my giant title logo and now everything displays fine on a real saturn. My bit definitions went from 40k to 15k (yes that one image was THAT huge). I still think there's some size limit I'm hitting. I'll check the docs for more info. |
TakaIsSilly | Jan 17, 2005 | |||
Where are you placing the logo? VRAM or LORAM? The only bottlenecks I remember was uploading stuff to VRAM every frame, or taking too mutch time to draw sprites. The first is in one of the Technical Buletins, the other is in the VDP1 register documentation, I belive. I haven't touched them in over a year so bear with me. ^^; |