Closed rsantellan closed 3 years ago
can you try building with -O3 and the latest SDL (or at least 2.0.10) with OpenGL?
@bradallred how to build with the OpenGL ? My SDL version is:
dpkg -l | grep sdl2
ii libsdl2-2.0-0:amd64 2.0.10+dfsg1-3 amd64 Simple DirectMedia Layer
ii libsdl2-2.0-0:i386 2.0.10+dfsg1-3 i386 Simple DirectMedia Layer
ii libsdl2-dev:amd64 2.0.10+dfsg1-3 amd64 Simple DirectMedia Layer development files
ii libsdl2-image-2.0-0:amd64 2.0.5+dfsg1-2 amd64 Image loading library for Simple DirectMedia Layer 2, libraries
ii libsdl2-mixer-2.0-0:amd64 2.0.4+dfsg1-2build1 amd64 Mixer library for Simple DirectMedia Layer 2, libraries
ii libsdl2-net-2.0-0:amd64 2.0.1+dfsg1-4 amd64 Network library for Simple DirectMedia Layer 2, libraries
When running cmake
, add -DOPENGL_BACKEND=OpenGL
to the parameters.
@MarcelHB don't work with OpenGL
[SDL 2 Driver]: Creating display
[SDL20Video/DEBUG]: Renderer: opengl
[SDL 2 GL Driver]: OpenGL version: 4.6 (Compatibility Profile) Mesa 20.2.6, renderer: AMD RAVEN (DRM 3.35.0, 5.4.0-77-generic, LLVM 11.0.0), vendor: X.Org
[SDL 2 GL Driver]: GLSL version: 4.60
[SDL 2 GL Driver/FATAL]: Can't build shader program: GLSLProgram error: Can't open file: /usr/local/share/gemrb/Shaders/SDLTextureV.glsl
[Core/FATAL]: Cannot initialize shaders.
[Main]: Aborting due to fatal error...
Without that works good.
its pretty clear from the error message you haven't copied the shaders to the location they are expected or the permissions are wrong.
After building it in my plugins folder I have:
find . -name SDLTextureV.glsl
./gemrb/plugins/SDLVideo/Shaders/SDLTextureV.glsl
./build/Shaders/SDLTextureV.glsl
And my plugins paths is:
PluginsPath=./plugins/
So where I change the option to start using the PluginsPath ?
How do you run gemrb?
@lynxlynxlynx I do:
./gemrb -c GemRB.BG2.cfg
But from where? If you're in the build dir as the config suggests, the paths expect you to be at its top, not under gemrb/.
I run it from here: build/gemrb/ I do
cd build/gemrb/ && ./gemrb -c GemRB.BG2.cfg
Exactly, either do as I said or fix the paths in the config — the defaults are not for this setup.
Sorry @lynxlynxlynx but I don't understand... I have the plugins dir here: build/gemrb/plugins/ Where I should run it ? Where should I put the config
cd build/ && gemrb/gemrb -c gemrb/GemRB.BG2.cfg
Now I have to move the plugin configuration, right ?
[Config]: attempting to initialize config with GemRB.BG2.cfg
[Core]: GemRB core version v0.9.0-git loading ...
[Core]: Starting Plugin Manager...
[PluginMgr]: Loading Plugins from ./plugins/
[PluginMgr/ERROR]: Plugin Directory (./plugins/) does not exist!
[Core/FATAL]: Plugin Loading Failed, check path...
[Main]: Aborting due to fatal error...
easiest to move the config one folder up.
@lynxlynxlynx now it worked and is not happening anymore this issue. If I have more data I'll reopen it.
Bug description
After moving to version 0.9.0 sometimes the games go like in slow motion.
Steps to reproduce
Don't know how, because I can replicate it always
Expected behavior
Not be choppy
Screenshots
https://user-images.githubusercontent.com/1820598/124691686-962cde80-deb2-11eb-9208-95ccefc04e47.mp4
Here is the log
GemRB version (check as many as you know apply)
Video Driver (check as many as you know apply)
USE_OPENGL_BACKEND
USE_OPENGL_BACKEND