Page 1 of 2

OpenWindowedScreen - Bit depth

Posted: Fri Oct 06, 2006 4:33 am
by dracflamloc
Is there a way to specify to load sprite3d textures as 16 bit, and/or open the screen in 16 bit. The reason I ask is because my mmorpg after loading the tile sheet and sprite sheet, etc, takes up 40mb of video ram.

For a 2d rpg, thats pretty crazy. I could create a loader/unloader for unused tiles on a map, etc, but it'd still be nice to specify the bit depth, and maybe even some kind of in-memory texture compression for sprite3d.

Thanks.

Posted: Fri Oct 06, 2006 10:15 am
by Trond
Result = OpenScreen(Width, Height, Depth, Title$)

Posted: Fri Oct 06, 2006 11:01 am
by traumatic
It's about OpenWindowedScreen...
...and AFAIK you can't have 2 different depths at the same time
(gamescreen vs. desktop). How should that work?

Posted: Fri Oct 06, 2006 11:18 am
by Trond
I missed the Window thing.

Re: OpenWindowedScreen - Bit depth

Posted: Fri Oct 06, 2006 12:09 pm
by Fluid Byte
dracflamloc wrote:Is there a way to specify to load sprite3d textures as 16 bit, and/or open the screen in 16 bit. The reason I ask is because my mmorpg after loading the tile sheet and sprite sheet, etc, takes up 40mb of video ram.

For a 2d rpg, thats pretty crazy. I could create a loader/unloader for unused tiles on a map, etc, but it'd still be nice to specify the bit depth, and maybe even some kind of in-memory texture compression for sprite3d.
Absolutely not because the depth of a windowed screen is always the depth of your current desktop setting. E.g. you can't set your desktop to 32Bit and your windowed screen to 16Bit because the both share the same graphical environment.

Posted: Fri Oct 06, 2006 1:28 pm
by dracflamloc
Actually it can be rendered in 16 bits and the surface itself drawn to the 32 bit screen. I've seen it done, however I have more than just that request. I want to be able to tell LoadSprite what quality and bitdepth a texture is loaded in. This should have nothing to do with what depth the screen itself is.

Posted: Fri Oct 06, 2006 3:38 pm
by Fluid Byte
dracflamloc wrote:Actually it can be rendered in 16 bits and the surface itself drawn to the 32 bit screen.
Well, not nativley in PB.

Posted: Fri Oct 06, 2006 4:17 pm
by Trond
Fluid Byte wrote:
dracflamloc wrote:Actually it can be rendered in 16 bits and the surface itself drawn to the 32 bit screen.
Well, not nativley in PB.
Image Which is why he's requesting it...

Posted: Fri Oct 06, 2006 4:53 pm
by Fluid Byte
Trond wrote:
Fluid Byte wrote:
dracflamloc wrote:Actually it can be rendered in 16 bits and the surface itself drawn to the 32 bit screen.
Well, not nativley in PB.
Image Which is why he's requesting it...
Not, quite:
dracflamloc wrote:I want to be able to tell LoadSprite what quality and bitdepth a texture is loaded in. This should have nothing to do with what depth the screen itself is.

Posted: Fri Oct 06, 2006 5:53 pm
by dracflamloc
this was kind of a 2-for-1 request, I want both to be possible =)

Posted: Fri Oct 06, 2006 6:29 pm
by Trond
Fluid Byte wrote:
Trond wrote:
Fluid Byte wrote:
dracflamloc wrote:Actually it can be rendered in 16 bits and the surface itself drawn to the 32 bit screen.
Well, not nativley in PB.
Image Which is why he's requesting it...
Not, quite:
dracflamloc wrote:I want to be able to tell LoadSprite what quality and bitdepth a texture is loaded in. This should have nothing to do with what depth the screen itself is.
I don't think he said exactly what he meant. Sort of.

Posted: Fri Oct 06, 2006 6:35 pm
by dracflamloc
haha... ok heres a breakdown to avoid any confusion:

1. OpenWindowedScreen should be able to force a bit depth one way or another.

2. LoadSprite, Catch, etc should have an option to specify the bit depth it is loaded in as. If I want to load a 32bit PNG as 16-bit or 8-bit texture it should be possible, and would help reduce video memory usage with large tile/sprite sheets.

Posted: Fri Oct 06, 2006 6:36 pm
by netmaestro
I asked for a selectable bitdepth for OpenWindowedScreen somewhere and Fred replied that he thought it was an interesting idea and worth doing but I can't for the life of me find the post again. It was about six months ago.

Posted: Fri Oct 06, 2006 8:37 pm
by Fluid Byte
Yo dracflamloc! Do me a favor, no more 2-for-1 request! :twisted:

One more thing. If you want a custom depth for your windowed screen you may ask/force the user to switch the depth temporary while your program is running (at least until we have another solution). Not uncommon for emulators or some older games.

Posted: Fri Oct 06, 2006 8:55 pm
by dracflamloc
I'm wondering if that'd save on the video memory, which is my primary concern with all this. Might try and see =)