OldUnreal / UnrealTournamentPatches

Other
1.04k stars 30 forks source link

[469c] Performance problems on older HW #1149

Open 12sunflowers opened 1 year ago

12sunflowers commented 1 year ago

Hello!)

i am install native linux ut99 using this guide https://gist.github.com/soifou/e863b978d1f01e33691b

Natively Linux version working good.

But i want patch game. After patching OldUnreal-UTPatch469c-Linux-amd64.tar.bz2 game starts and runs extremaly slow, ~0.5fps, its need ~1-3mins to appear game menu Other games - ezquake and zandronum plays well and fast

Fedora x64 xfce, c2d q6600, gf9800(340.108 driver), 4gb ram

[Engine.Engine] or GameRenderDevice=OpenGLDrv.OpenGLRenderDevice - works VERY SLOW or GameRenderDevice=XOpenGLDrv.XOpenGLRenderDevice - error https://ibb.co/T0W6N2z or GameRenderDevice=SglDrv.SglRenderDevice - error https://ibb.co/9wbNm8n

AudioDevice=Cluster.ClusterAudioSubsystem

stijn-volckaert commented 1 year ago

The 469 patches aren't really optimized for older hardware. 0.5fps is very slow, however. Something is definitely not right. Could you try the 469b patch? That one has an older version of the OpenGL renderer. You could also try switching to ALAudio by setting AudioDevice to ALAudio.ALAudioSubsystem in your game ini).

If the problem persists after trying the older patch and/or trying ALAudio, then please upload your game log. It's usually in ~/.utpg/System/ or ~/.loki/ut/System/

12sunflowers commented 1 year ago

Thank you very much for reply! Ok, i will try today your suggestion and report.

ps if this is new opengl issue on my old pc, can i swich render or make compilation with older opengl on new patches?

12sunflowers commented 1 year ago

unreal.log.zip

The 469 patches aren't really optimized for older hardware. 0.5fps is very slow, however. Something is definitely not right. Could you try the 469b patch? That one has an older version of the OpenGL renderer. You could also try switching to ALAudio by setting AudioDevice to ALAudio.ALAudioSubsystem in your game ini).

If the problem persists after trying the older patch and/or trying ALAudio, then please upload your game log. It's usually in ~/.utpg/System/ or ~/.loki/ut/System/

Yes, on 469b fps is very high and game runs good, but sound is glitch its like "zx spectrum lodading type noise" same on ALAudio and Cluster Ah, its GPU coil whine noise because fps is 500+ turn on vsync sole this.

And is it possible that that i can have such performance on 469c? Can i change source files to another render and make compilation?

12sunflowers commented 1 year ago

And why Xopengl not working? https://ibb.co/T0W6N2z

[freeartist@fedora System]$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.3.0 NVIDIA 340.108
[freeartist@fedora System]$ 
12sunflowers commented 1 year ago

Under Win7x32 Opengl working same bad 0.5-10fps but Xopengl working very good but dark

uralets commented 1 year ago

free advice: avoid shifty guides (aka most "guides" on teh internets).

12sunflowers commented 1 year ago

free advice: avoid shifty guides (aka most "guides" on teh internets).

lol, what? what are you talking about? installation guide? this is only one working guide for native linux installation of ut!

and do not offtop here. Its all about not installation but why new patch not working on my old hardware?

an-eternity commented 1 year ago

I had the same problem with OGL when tested it on 8600 GT (driver version 341.74), but with v469c-RC2 in Windows 10. Even Intro was with incredibly low framerate.

12sunflowers commented 1 year ago

I had the same problem with OGL when tested it on 8600 GT (driver version 341.74), but with v469c-RC2 in Windows 10. Even Intro was with incredibly low framerate.

Thanks for reply and info! Yes, its legacy hw and ut patch devs may be focusing to modern hw.

stijn-volckaert commented 1 year ago

Could you test this with the latest 469d preview? Come talk to us on Discord if you don't have access to preview builds

12sunflowers commented 1 year ago

Could you test this with the latest 469d preview? Come talk to us on Discord if you don't have access to preview builds

Hello!) Where i can get latest 469d preview for test?

12sunflowers commented 1 year ago

Could you test this with the latest 469d preview? Come talk to us on Discord if you don't have access to preview builds

i am join to Old Unreal discord as Mist

12sunflowers commented 1 year ago

UT469d rc2 Lanuch errors Opengl and XOpengl

freeartist-devuan@home:/home/freeartist/ut-469d rc2$ 
freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./ut-bin
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini
Object not found: Class SDLDrv.SDLRenderDevice
Assertion failed: RenDev [File:/home/stijn/UnrealTournament/SDLDrv/Src/SDLViewport.cpp] [Line: 710]

History: USDLViewport::OpenWindow <- UGameEngine::Init <- InitEngine <- main

Exiting due to error

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System$ ./ut-bin
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Signal: SIGIOT [iot trap]
Aborting.

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./ut-bin
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini
Object not found: Class SDLDrv.SDLRenderDevice
Assertion failed: RenDev [File:/home/stijn/UnrealTournament/SDLDrv/Src/SDLViewport.cpp] [Line: 710]

History: USDLViewport::OpenWindow <- UGameEngine::Init <- InitEngine <- main

Exiting due to error

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./ut-bin-amd64
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini
Object not found: Class SDLDrv.SDLRenderDevice
Assertion failed: RenDev [File:/home/stijn/UnrealTournament/SDLDrv/Src/SDLViewport.cpp] [Line: 710]

History: USDLViewport::OpenWindow <- UGameEngine::Init <- InitEngine <- main

Exiting due to error

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./wx-ut-bin-amd64
./wx-ut-bin-amd64: error while loading shared libraries: libwx_gtk3u_core-3.2.so.0: cannot open shared object file: No such file or directory

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System$ ./ut-bin
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Signal: SIGIOT [iot trap]
Aborting.

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ 
SeriousBuggie commented 1 year ago

Missed libgtk3-nocsd.so.0 in general. And libwx_gtk3u_core-3.2.so.0 (wx libs) in specific for wx launcher. You need install packages which contain these libs.

For first read this: https://stackoverflow.com/questions/53825857/error-ld-so-object-libgtk3-nocsd-so-0-from-ld-preload-cannot-be-preloaded

For second - you need install wx libs for use it. For example as show here: https://stackoverflow.com/questions/63151195/error-while-loading-shared-libraries-libwx-gtk3u-core-3-1-so-3-cannot-open-sha

12sunflowers commented 1 year ago

same

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./ut-bin-amd64
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x3c00004
  Serial number of failed request:  131
  Current serial number in output stream:  131

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./ut-bin
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x3c00004
  Serial number of failed request:  131
  Current serial number in output stream:  131

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ 
freeartist-devuan@home:/home/freeartist/ut-469d rc2$ ./ut
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Failed import: Class Class Core.PointerProperty (file ..\System\Core.u)
Signal: SIGIOT [iot trap]
Aborting.
Exiting.
Name subsystem shut down
Allocation checking disabled

freeartist-devuan@home:/home/freeartist/ut-469d rc2$ 
freeartist-devuan@home:/usr/lib/x86_64-linux-gnu$ env
SHELL=/bin/bash
SESSION_MANAGER=local/home:@/tmp/.ICE-unix/2280,unix/home:/tmp/.ICE-unix/2280
WINDOWID=54527001
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg
HISTCONTROL=ignoreboth
XDG_MENU_PREFIX=xfce-
LANGUAGE=en_US:en
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXamLsCJ/agent.2280
LIBOVERLAY_SCROLLBAR=0
DESKTOP_SESSION=xfce
SSH_AGENT_PID=2344
GTK_MODULES=gail:atk-bridge
XDG_SEAT=seat0
PWD=/usr/lib/x86_64-linux-gnu
LOGNAME=freeartist-devuan
XDG_SESSION_TYPE=x11
PANEL_GDK_CORE_DEVICE_EVENTS=0
MC_TMPDIR=/tmp/mc-freeartist-devuan
XAUTHORITY=/home/freeartist-devuan/.Xauthority
LD_PRELOAD=libgtk3-nocsd.so.0
MC_SID=11140
HOME=/home/freeartist-devuan
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
XDG_CURRENT_DESKTOP=XFCE
VTE_VERSION=7006
GTK_CSD=0
XDG_SESSION_CLASS=greeter
TERM=xterm-256color
GTK_OVERLAY_SCROLLING=0
USER=freeartist-devuan
DISPLAY=:0.0
SHLVL=2
XDG_VTNR=7
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-zRYczfBAjl,guid=410673cde85c9fe60e96b282652ecc12
MAIL=/var/mail/freeartist-devuan
OLDPWD=/usr
_=/usr/bin/env
freeartist-devuan@home:/usr/lib/x86_64-linux-gnu$ 
freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./wx-ut-bin-amd64
./wx-ut-bin-amd64: error while loading shared libraries: libwx_gtk3u_core-3.2.so.0: cannot open shared object file: No such file or directory
12sunflowers commented 1 year ago

After reinstalling video driver try launch ut-bin ut-bin-amd64
in UnrealTournament.ini set OpenGLDrv.OpenGLRenderDevice Game is starting but i have 1-2fps like in previous 469* builds

12sunflowers commented 1 year ago

Missed libgtk3-nocsd.so.0 in general. And libwx_gtk3u_core-3.2.so.0 (wx libs) in specific for wx launcher. You need install packages which contain these libs.

For first read this: https://stackoverflow.com/questions/53825857/error-ld-so-object-libgtk3-nocsd-so-0-from-ld-preload-cannot-be-preloaded

For second - you need install wx libs for use it. For example as show here: https://stackoverflow.com/questions/63151195/error-while-loading-shared-libraries-libwx-gtk3u-core-3-1-so-3-cannot-open-sha

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ ./wx-ut-bin-amd64
WARNING: using preference directory: /home/freeartist-devuan/.utpg/System/
WARNING: Using system ini file: /home/freeartist-devuan/.utpg/System/UnrealTournament.ini
WARNING: Using user ini file: /home/freeartist-devuan/.utpg/System/User.ini

Developer Backtrace:
[ 1]  /home/freeartist/ut-469d rc2/System64/Core.so(_Z12HandleSignali+0x222) [0x7f4421ae8e52]
[ 2]  /lib/x86_64-linux-gnu/libc.so.6(+0x3bfd0) [0x7f442185afd0]
[ 3]  /usr/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0(_ZN12wxRefCounter6DecRefEv+0xe) [0x7f44229367ce]
[ 4]  /usr/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0(_ZN8wxObject5UnRefEv+0x12) [0x7f4422936872]
[ 5]  /usr/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0(_ZN8wxObject3RefERKS_+0x1b) [0x7f442293689b]
[ 6]  /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0(_ZN8wxWizard4InitEv+0x71) [0x7f442327d051]
[ 7]  ./wx-ut-bin-amd64() [0x4344de]
[ 8]  ./wx-ut-bin-amd64() [0x421cae]
[ 9]  ./wx-ut-bin-amd64() [0x41fb4f]
[10]  ./wx-ut-bin-amd64() [0x4214e0]
[11]  ./wx-ut-bin-amd64() [0x4217d7]
[12]  /lib/x86_64-linux-gnu/libc.so.6(+0x271ca) [0x7f44218461ca]
[13]  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f4421846285]
[14]  ./wx-ut-bin-amd64() [0x41e9ae]
Signal: SIGSEGV [segmentation fault]
Aborting.

Signal: SIGSEGV [segmentation fault]

History: main

Exiting due to error

freeartist-devuan@home:/home/freeartist/ut-469d rc2/System64$ 
CacoFFF commented 1 year ago

Post the OpenGL renderer settings from your UnrealTournament.ini

12sunflowers commented 1 year ago

UnrealTournament.ini.zip

CacoFFF commented 1 year ago

The settings under OpenGLDrv look outdated/incomplete, if you're on linux you may have another INI under ~/utpg/System It's likely using defaults for a lot of things, are you using v469d?

12sunflowers commented 1 year ago

i am deleting ~/utpg/ its new autogenerated ini and ~/utpg/ by game i think here problem not in settings but legacy driver and new patches vanilla ut runs well

12sunflowers commented 1 year ago

Tested at Windows 7 OpenGL same, 1-2fps very slow Direct3D 9 all working good XOpenGL all working good

But why XOpenGL do not whant working under Linux?

ps video drivers the same at Windows 7 and Linux

CacoFFF commented 1 year ago

In your UnrealTournament.ini, change the following settings

[OpenGLDrv.OpenGLRenderDevice]
ColorCorrectionMode=InShader
ContextType=Compatibility
DetailMax=1
12sunflowers commented 1 year ago

[OpenGLDrv.OpenGLRenderDevice] ColorCorrectionMode=InShader ContextType=Compatibility DetailMax=1

Woow! Incredible! You are a wizard! Its working like a charm now! How did you know what is need to set in options?

CacoFFF commented 1 year ago

Either:

It's more likely it's the framebuffers. I added DetailMax=1 just to lower the load a little.

12sunflowers commented 1 year ago

Thanks! It great that new patches for old game working on old hardware)))

Your GPU does not do OpenGL3 well. but here i see this

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9800 GTX+/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.108
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

glxinfo-gf9800gtx.txt

CacoFFF commented 1 year ago

It's very likely your GPU doesn't really support some features and the driver is performing software emulation which destroys performance.

You can try reverting either the color correction or the context type to defaults and see which one causes the slowdown.

CacoFFF commented 1 year ago

Closing the issue would feel incomplete as is. It would be useful to have an automated test system to ensure features actually work and disable them at startup.

Some drivers simply cannot be trusted

uralets commented 1 year ago

Closing the issue would feel incomplete as is. It would be useful to have an automated test system to ensure features actually work and disable them at startup.

Some drivers simply cannot be trusted

But considering it's a case of 15 yo hardware running on an old closed-source driver (probably unsupported now), is it really reasonable to want to gracefully test for everything there is in the wild? Even commercial games can't do that.

I mean that 469/227 is clearly a development of the engine that demands a relatively modern feature set and it's long since has to be understood that it's wrong to assume that it should flawlessly work on any given CPU/GPU combo released since 1999.

12sunflowers commented 1 year ago

@all To all free people! ignore ruzzians orks they support world terrorism and war!

12sunflowers commented 1 year ago

supporting the old and legacy is the main task for free geniuses devs and these ut patches are proof of that

ps my video driver is still support for new kernels, thanks to linux community:)