mgba icon indicating copy to clipboard operation
mgba copied to clipboard

xBRZ black screen when High resolution scale >1

Open arandomguysomewhere opened this issue 11 months ago • 9 comments

Hi, thanks for this great emulator! I'm not sure if this issue is emulator-specific but when using either of the xBRZ shaders on the OpenGL renderer, if the High resolution scale is greater than 1 the graphics output is a black screen. Maybe there's an underlying bug or a warning about combining scaling with resolution scaling could help if not?

arandomguysomewhere avatar Mar 17 '24 16:03 arandomguysomewhere

I should probably add a warning that upscalers don't mix well with highres, but it still shouldn't just be black.

endrift avatar Mar 24 '24 20:03 endrift

Hi, thanks for this great emulator! I'm not sure if this issue is emulator-specific but when using either of the xBRZ shaders on the OpenGL renderer, if the High resolution scale is greater than 1 the graphics output is a black screen. Maybe there's an underlying bug or a warning about combining scaling with resolution scaling could help if not?

Click “Audio/Video”→“Frame size”→choose “1x” (generally, you should always choose 1x on “Frame size” if you set “High-resolution scale” greater than 1x), this may restore your graphics. If this solved your issue and in case a similar problem occurs in the future, re-click the magnification of your choice on “Frame size” to see if it works.

Ocatopuss avatar Sep 17 '24 02:09 Ocatopuss

Hi, thanks for this great emulator! I'm not sure if this issue is emulator-specific but when using either of the xBRZ shaders on the OpenGL renderer, if the High resolution scale is greater than 1 the graphics output is a black screen. Maybe there's an underlying bug or a warning about combining scaling with resolution scaling could help if not?

Click “Audio/Video”→“Frame size”→choose “1x” (generally, you should always choose 1x on “Frame size” if you set “High-resolution scale” greater than 1x), this may restore your graphics. If this solved your issue and in case a similar problem occurs in the future, re-click the magnification of your choice on “Frame size” to see if it works.

That doesn't fix the black screen with the xBRZ shader active when windowed. If from the black screen I go to full screen by double clicking/ALT+ENTER/using the menu the image is visible but the shader isn't applied. For clarity, the High resolution scale is in the Renderer settings, quite odd behaviour.

arandomguysomewhere avatar Sep 17 '24 18:09 arandomguysomewhere

That doesn't fix the black screen with the xBRZ shader active when windowed. If from the black screen I go to full screen by double clicking/ALT+ENTER/using the menu the image is visible but the shader isn't applied. For clarity, the High resolution scale is in the Renderer settings, quite odd behaviour.

Eh, for clarity, when you mention xBRZ, do you mean the xBR-lv2 and lv3 that come with the mGBA, or literally some 3rd party shader? About the “shader isn't applied”, that may because smoothing shaders such as xBR series are generally tiny effective with “High-resolution scale”.

Ocatopuss avatar Sep 18 '24 12:09 Ocatopuss

That doesn't fix the black screen with the xBRZ shader active when windowed. If from the black screen I go to full screen by double clicking/ALT+ENTER/using the menu the image is visible but the shader isn't applied. For clarity, the High resolution scale is in the Renderer settings, quite odd behaviour.

Eh, for clarity, when you mention xBRZ, do you mean the xBR-lv2 and lv3 that come with the mGBA, or literally some 3rd party shader? About the “shader isn't applied”, that may because smoothing shaders such as xBR series are generally tiny effective with “High-resolution scale”.

Yeah the built-in shaders were causing this behaviour.

arandomguysomewhere avatar Sep 18 '24 18:09 arandomguysomewhere

Yeah the built-in shaders were causing this behaviour.

The two that come with the mGBA are not xBRZ, I personally think it would be great if the mGBA would come with xBRZ (with selectable scale). It's possible that your software and/or hardware don't support them. I've had black screens on other emulators after choosing certain shaders.

Ocatopuss avatar Sep 19 '24 00:09 Ocatopuss

Yeah the built-in shaders were causing this behaviour.

The two that come with the mGBA are not xBRZ, I personally think it would be great if the mGBA would come with xBRZ (with selectable scale). It's possible that your software and/or hardware don't support them. I've had black screens on other emulators after choosing certain shaders.

That's incorrect, mGBA comes with many shaders, including xBRZ shaders but you need to go to Tools->Shaders then load the shader you want from the shaders subfolder. As I have stated before, the shader does work but other settings unexpectedly cause black screens which is something endrift has also acknowledged.

gordonfreeman01 avatar Sep 19 '24 19:09 gordonfreeman01

xBR and xBRZ are not the same thing. xBRZ is an enhanced version of xBR and the one everyone else ships.

The reason mGBA does not include xBRZ is because of licensing: xBRZ is GPL and mGBA is not. There may be a way around this but I have yet to actually try to do anything about it.

endrift avatar Sep 19 '24 20:09 endrift

xBR and xBRZ are not the same thing. xBRZ is an enhanced version of xBR and the one everyone else ships.

The reason mGBA does not include xBRZ is because of licensing: xBRZ is GPL and mGBA is not. There may be a way around this but I have yet to actually try to do anything about it.

Thanks for the correction, I missed the Z, my bad. I can't rename the issue to remove the Z but the core of the problem, the black screen when combining scaling with the xBR shader, is strange.

gordonfreeman01 avatar Sep 19 '24 20:09 gordonfreeman01