MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Mariosgeorgiou
MAME Fan
Reged: 06/09/16
Posts: 22
Send PM


32-bit color
#365055 - 04/09/17 10:37 PM


Can i change color bits with MAME? For example i want to choose 32-bit color. if yes by which option
in mame.ini and settings menu?



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM


Re: 32-bit color new [Re: Mariosgeorgiou]
#365060 - 04/10/17 01:28 AM


> Can i change color bits with MAME? For example i want to choose 32-bit color. if yes
> by which option
> in mame.ini and settings menu?

There are no 32-bit displays. 30-bit displays exist, but MAME only outputs 24-bit video.



CTOJAH
MAME Addict
Reged: 07/13/10
Posts: 980
Loc: Macedonia,Veles
Send PM


Re: 32-bit color new [Re: Vas Crabb]
#365064 - 04/10/17 02:33 AM


> > Can i change color bits with MAME? For example i want to choose 32-bit color. if
> yes
> > by which option
> > in mame.ini and settings menu?
>
> There are no 32-bit displays. 30-bit displays exist, but MAME only outputs 24-bit
> video.

Perhaps He was thinking of 32 bit palette (true color) ?!



Foxhack
Furry guy
Reged: 01/30/04
Posts: 2409
Loc: Spicy Canada
Send PM


Re: 32-bit color new [Re: Mariosgeorgiou]
#365067 - 04/10/17 05:29 AM


> Can i change color bits with MAME? For example i want to choose 32-bit color. if yes
> by which option
> in mame.ini and settings menu?

MAME will output video in whatever your video card is set to. Most computers nowadays run on 32-bit color by default, only older systems still run on 256 color / 16-bit color.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM


Re: 32-bit color new [Re: CTOJAH]
#365068 - 04/10/17 09:16 AM


> Perhaps He was thinking of 32 bit palette (true color) ?!

"True colour" isn't 32-bit. It's 24-bit direct RGB (16.7 million colours). If you have a 30-bit monitor, applications that take advantage of it work by uploading 48-bit OpenGL textures (16-bits per channel, the GPU drops the low six bits on each channel bringing it down to 10 bits per channel, or 30 bits per pixel).



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM


Re: 32-bit color new [Re: Foxhack]
#365069 - 04/10/17 09:20 AM


> MAME will output video in whatever your video card is set to. Most computers nowadays
> run on 32-bit color by default, only older systems still run on 256 color / 16-bit
> color.

That's not really true - MAME will pretty much always pump out 24-bit (8-bit per channel) texture data, which may get downsampled if you're running in a lower depth video mode. Older versions of MAME could output lower depth, or even 8-bit indexed (256 colours), but that hasn't been supported in a long time.



Haze
Reged: 09/23/03
Posts: 5245
Send PM


Re: 32-bit color new [Re: Vas Crabb]
#365071 - 04/10/17 09:44 AM


> > MAME will output video in whatever your video card is set to. Most computers
> nowadays
> > run on 32-bit color by default, only older systems still run on 256 color / 16-bit
> > color.
>
> That's not really true - MAME will pretty much always pump out 24-bit (8-bit per
> channel) texture data, which may get downsampled if you're running in a lower depth
> video mode. Older versions of MAME could output lower depth, or even 8-bit indexed
> (256 colours), but that hasn't been supported in a long time.

Windows has always called it 32-bit mode, as opposed to 24-bit mode which was slow and generally not widely supported (presumably due to alignment or something)

being a pedantic asshole about it doesn't make the project look friendly.

as for what the original poster was asking, MAME only really works properly with those modes these days, things like the 8-bit palletized modes were removed a long time ago, chances are if you're running a modern version on a modern OS it is running in '32-bit colour' mode already.



RdW
MAME Fan
Reged: 02/13/05
Posts: 237
Send PM


Re: 32-bit color new [Re: Vas Crabb]
#365075 - 04/10/17 03:08 PM


> > Perhaps He was thinking of 32 bit palette (true color) ?!
>
> "True colour" isn't 32-bit. It's 24-bit direct RGB (16.7 million colours). If you
> have a 30-bit monitor, applications that take advantage of it work by uploading
> 48-bit OpenGL textures (16-bits per channel, the GPU drops the low six bits on each
> channel bringing it down to 10 bits per channel, or 30 bits per pixel>
Isn't 24-bit truecolor and an 8-bit alpha channel called 32-bit truecolor on Windows? Edit: nevermind haze answered it already

Edited by RdW (04/10/17 03:09 PM)



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: 32-bit color new [Re: Haze]
#365079 - 04/10/17 04:53 PM


> as for what the original poster was asking, MAME only really works properly with
> those modes these days, things like the 8-bit palletized modes were removed a long
> time ago, chances are if you're running a modern version on a modern OS it is running
> in '32-bit colour' mode already.

I'm willing to bet either he's talking about a version where 8-bit palettized modes are a thing or this is a prelude to a "I want to set MAME so SF2 has 24-bit sprites" type of thing.



Heihachi_73
I am the Table!
Reged: 10/29/03
Posts: 1074
Loc: Melbourne, Australia
Send PM


Re: 32-bit color new [Re: Haze]
#365092 - 04/11/17 03:37 AM


> > > MAME will output video in whatever your video card is set to. Most computers
> > nowadays
> > > run on 32-bit color by default, only older systems still run on 256 color /
> 16-bit
> > > color.
> >
> > That's not really true - MAME will pretty much always pump out 24-bit (8-bit per
> > channel) texture data, which may get downsampled if you're running in a lower depth
> > video mode. Older versions of MAME could output lower depth, or even 8-bit indexed
> > (256 colours), but that hasn't been supported in a long time.
>
> Windows has always called it 32-bit mode, as opposed to 24-bit mode which was slow
> and generally not widely supported (presumably due to alignment or something)
>
> being a pedantic asshole about it doesn't make the project look friendly.
>
> as for what the original poster was asking, MAME only really works properly with
> those modes these days, things like the 8-bit palletized modes were removed a long
> time ago, chances are if you're running a modern version on a modern OS it is running
> in '32-bit colour' mode already.

The horrors of Intel's i810 chipset. 24-bit was the max setting in GDI/DirectDraw, 16-bit only in OpenGL/D3D. Cue random emulator crashing on load when it couldn't set either 32-bit or 16-bit mode because the user had a 24-bit desktop instead! To make it even worse, in Intel's infinite wisdom, every computer which had the 82810 only came with PCI slots - board manufacturers had to specify the 82815 chipset to get an AGP slot. The i815 onboard video was exactly the same as the i810 however.

The S3 ViRGE and a few other 90s PCI cards also maxed out at 24-bit on the desktop (the older Trio series had 32-bit output despite the ViRGE being based on the same design, go figure - of course I wouldn't put it past Microsoft to simply have a shit driver in those days, as I distinctly remember GTA1 having 32-bit depth support in pure DOS but only 24-bit in Windows on the same computer) but as with the Intel chipset they would probably only do 16-bit in accelerated modes. Or in the S3 ViRGE's case, "decelerated" mode, as apparently rendering in GDI was faster than rendering in DirectDraw, and D3D/OpenGL larger than 320x240 was out of the question!



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM


Re: 32-bit color new [Re: RdW]
#365094 - 04/11/17 03:53 AM


> Isn't 24-bit truecolor and an 8-bit alpha channel called 32-bit truecolor on
> Windows? Edit: nevermind haze answered it already

There's no alpha channel at the monitor output. The mode Windows calls 32-bit is 24-bit colour (RGB 8-8-8) with unused padding to align it to 32-bit boundaries.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 420 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1655