-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI is lagging and slow #30
Comments
Hi, Are you using appimage? It was compiled using a GitHub-hosted runner with Ubuntu 20.04. If that's the case, it might be a runtime library incompatibility. Please check the version of SDL2 and GLEW libs installed and your system. |
A possible issue in Ubuntu 22: In the meantime, I have compiled a version without appimage with Ubuntu 22.04. Check if the problem persists: |
I built it from scratch on my machine without using AppImage. |
Can you tell which versions of dependency libraries of your executable? (ldd ./cadzinho) |
Here is what I found through
Open GL version:
Here is the result of
SDL2 version
|
Do you tried running the release AppImage? Or the binary in linux.zip? Are they with the same behavior? |
I can not run an outsider executable without sand-boxing it. Would it be a valid test for you if I run it on a VM ? Have you been able to run it on Ubuntu 22.04 LTS without any problem ? |
CadZinho binaries don't need installation, just extract the .zip then
Yes, I want to check if the behavior will be the same on different machines.
I launch the linux version (compiled on Unbuntu 22.04) in a Arch Linux machine, and works pretty well . |
This is the default behavior: Screencast_04-01-2022_15:13:41.webm |
The crosshair cursor is lagging even in your default behaviour. UI is not responsive to mouse pointer movements. I do not expect this in an immediate UI with at least 60 fps. |
Well, the frame rate is set to less than 60Hz on CadZinho, to try to balance performance with intensive CPU usage. But increasing the frame rate alone will not improve the lag feeling in the interface, maybe even intensify it. It's true that CadZinho still needs to improve its rendering strategy, but I think it's the best possible configuration at the moment. |
@zecruel Please, reopen this issue. |
Yes, need reopen. Because frame rate is locket to 11~12 frames per second . If im comment this delay, Im have Lines 509 to 513 in 2b47dd0
Maybe add user option for set delay? No set hardcore value? =) |
Quick solution for Windows - try: CadZinho-0-3-0.zip Long explanation: CadZinho uses hardware accelerated graphics via OpenGL 3.2 industry standard. So, you will need to ensure that you have downloaded and installed a compatible recent driver for your graphics hardware. This is the best recommendation. Windows: Apparently, on Windows this problem is more frequent (the default drivers have lazy support for OpenGL). Therefore, it is always a good idea to keep the drivers up to date, as indicated by each graphics card manufacturer. However, there is a solution that may be more practical and portable, which is to use the Mesa3D OpenGL library, as was done in the quick solution above. See more at: https://www.khronos.org/opengl/wiki/Getting_Started |
CadZinho was designed at 50 fps maximum for a balanced experience of using a desktop application, without the intensive use of the CPU. In heavy drawings, the refresh rate can drop significantly. I think increasing the frame rate would result in a bad or weird user experience. |
Linux users will wait commits. :) |
@zecruel Which branch was updated? We are Linux users. :) |
Now the refresh delay is adjustable in the configuration: Release 0.5.0 |
I am using it on Ubuntu 22.04 LTS. The UI specially the plotting pointer moves are slow and lagging.
The text was updated successfully, but these errors were encountered: