gonetz / GLideN64

A new generation, open-source graphics plugin for N64 emulators.
Other
770 stars 179 forks source link

MSAA crashes emulator on Google TV #2861

Open dq6 opened 1 month ago

dq6 commented 1 month ago

@gonetz, @olivieryuyu, @fzurita,

I'm focusing on N64 emulation directly on Google TV/Android TV. One of the most needed features on this platform is MSAA!

Problem observed: any value for MSAA crashes the emulator.

On mobile Android (10, 11 and 12) this problem IS NOT present. However, I'm able to use MSAA only up to 4x. 8x and 16x returns a black image. But, well, at least a MSAA=4x on Google TV would be great for helping with the antialiasing needs. The only paliative for this, by now, is applying FXAA. It helps, and you get a nice near-authentic-N64-feeling image, but it too softens everything, even those elements NOT meant to be softened.

Devices:

Google TV:

Emulators:

Mobile Android:

These screenshots were taken on the mobile Android: 1

2

3

4

Squall-Leonhart commented 2 weeks ago

use a gl viewer to check the capabilities of the X1, i do not believe the driver exposes msaa.

Nothing actually supports MSAA 16x, what is exposed on PC as 16x is a nvidia specific hybrid method that combines multisampling and super sampling (16xS)

dq6 commented 1 week ago

The processor inside the X90J is a XR, not a X1.

Using AIDA64, these are the multisample related GL extensions listed and other relevant info:

GPU: ARM Mali-G52

OpenGL ES 3.2

—GL_EXT_multisampled_render_to_texture —GL_EXT_multisampled_render_to_texture2 —GL_OES_texture_storage_multisample_2d_array —GL_OES_shader_multisample_interpolation —GL_OVR_multiview_multisampled_render_to_texture

The official technical specifications of Mali-G52 lists:

—4x, 8x and 16x MSAA Anti-Aliasing "4x Multi-Sampling Anti-Aliasing (MSAA) with minimal performance drop."

Greetings.

Squall-Leonhart commented 1 week ago

The TV has insufficient ram to use MSAA, unlike the phones which ship with 4+GB, the sony tv has roughly 3GB's which is partitioned 2|1 for system|video