Open larevehkaoja opened 2 years ago
I've noticed I get this when I use Conan to download the sdl2 source and compile it as part of the build, but the sdl2 libs shipped with Ubuntu work fine.
As a way of limiting variance across install I want the Conan route to work, which will mean everyone should have the same playing field then. I'll try and look into why this is happening and hopefully it'll improve the entire project for everyone.
Thanks for reporting.
Update on this- I've been testing between self-compiled SDL2 and Ubuntu packaged SDL2.
On the compiled version, it's taking on average 20 ticks to render a frame, which means, you're not going to get frames from the device on time and also the rendering is less than 60fps (which is around 13 ticks (ms)).
On the packaged version of SDL, a frame takes 2-3 ticks.
This seems to be due to the SDL_LockTexture and SDL_UnlockTexture calls, but I have no idea why!
The version shipped with ubuntu currently is 2.0.20. I've tried 2.0.20 and 2.24.0 from the conan package system.
I'm going to try and find out what the configuration issue is in the hope to reduce the rendering time to 10% of what it is currently when not using the ubuntu bundled SDL2.
I have been able to replicate the exact same issue with an iMac late 2013 using sfml I will try to see if I can find a work around there :)
EDIT:
So, after toggling off SFML usage and forcing SDL2 to use vsync with the flags SDL_RENDERER_PRESENTVSYNC
in call SDL_CreateRenderer
fixed the issues :)
Please attempt using the 0.3.0 release source and the GLFW build variant.
Sorry for the slow answer - have been busy due to conscript service. Last time I tried compiling, CMake raised errors and the driver was unable to compile
-- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
CMake Error at build/conan.cmake:73 (message):
Please specify in command line CMAKE_BUILD_TYPE
(-DCMAKE_BUILD_TYPE=Release)
Call Stack (most recent call first):
build/conan.cmake:444 (_conan_detect_build_type)
dependencies.cmake:26 (conan_cmake_autodetect)
src/liblgx/liblgx-common/CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
See also "/home/lare/Documents/Repos/lgx2userspace/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
I have followed README's installation instructions but there seems to be problems when capturing LGX GC550. Sound is working (I accidentally deleted it from video so it can't be heard) but picture is flickering. This happens with both CLI and GTK versions of
lgx2userspace
. Any ideas what I may have missed or what is wrong?About my Linux distribution
https://user-images.githubusercontent.com/112462385/189483859-d00faf9a-14fc-497d-afd1-4f7dd556a511.mp4