FWGS / xash3d-fwgs

Xash3D FWGS engine
1.58k stars 241 forks source link

[Mittorn's legacy launcher] Black bar on surface graphical bug (including flashlight lower fps and NPC models lag spike) #1774

Open TheKingFireS opened 3 months ago

TheKingFireS commented 3 months ago

To reproduce this bug, pick any maps (best case is hazard course map).

Looking at NPC models will cause massive lag spike sometime turn on flashlight will cause -15 fps.

gl_vbo is hardcoded disabled. gl_dlightmode is disabled and enabled, still same effect. switching to GLES2 will cause black screen (probably unrelated) switching to GL4ES doesn't have black bar bug, but lower performance. switching to Software doesn't have black bar bug and and it reduced NPC models lag spike, but it's Software mode.

Device: Samsung Galaxy Fame Lite OS: Android 4.1.2 with TouchWiz armv7 32bit CPU: Broadcom BCM21654/G clocked 849MHz, 1xCortex-A9 @ 849MHz (yes, only 1 core) GPU: Broadcom VideoCore IV HW, GLES 2.0 RAM: 512 MB Engine: 0.20 ver 3178, commit e43015ec-dirty (can't install latest version due to android 5 mininium and probably same bug "Can't find libSDL2.so" for Android 4.X)

Black bar (didn't happened on old engine): image Massive lag spike when looking at NPC models entity (same happened on old engine): Screenshot_2007-04-08-05-30-04

mittorn commented 3 months ago

Is this gles1 renderer?

Seems to be some nanogl or driver bug.

Of course, you may try gles3compat renderer, it should work on any gles2 hardware, but it may be even slower than gl4es on pure gles2 hardware (probably except drivers, supporting persistent/coherent buffer storages). I made some dlight improvements in vbo-related branches later, but not published android builds. Rebasing to it might help

TheKingFireS commented 3 months ago

Is this gles1 renderer?

Yes.

Of course, you may try gles3compat renderer, it should work on any gles2 hardware, but it may be even slower than gl4es on pure gles2 hardware (probably except drivers, supporting persistent/coherent buffer storages).

Ok, I'll try.

TheKingFireS commented 3 months ago

Of course, you may try gles3compat renderer, it should work on any gles2 hardware, but it may be even slower than gl4es on pure gles2 hardware (probably except drivers, supporting persistent/coherent buffer storages).

True, switching to gles3compat renderer, almost same as gles1/nanogl renderer (black bar bug, NPC models lag spike and flashlight fps reducer)

TheKingFireS commented 3 months ago

Turnout, my Fame Lite phone don't really like rendering NPC models.