Comments (6)
I have pushed a small pty speed improvement which should fix some of the problems you see. And then I have added a FPS limit. Could you give it a try? The "time dmesg" thing should now be pretty fast. I haven't checked the other use-cases yet.
I will do this later this afternoon. I will also check your other issues. Thanks!
from kmscon.
Yeah, time dmesg
is much faster now indeed. But scrolling in vim is still a slightly jerky, i.e., the updates seem irregularly spaced, and the cacademo is still quite sluggish and there is prominent tearing. I find this odd because fbterm and kmscon use the same amount of CPU now: 99% for cacademo and about 20% for kmscon and fbterm. fbterm just looks much smoother.
But in the end I don’t know if this benchmark matters at all.
from kmscon.
You have to take into account that terminal applications do not do double-buffering or vsync. That is, imagine vim redraws the screen, then it often clears it first and then draws the new content. If the terminal redraws the framebuffer in between these calls, you will see incomplete screens. xterm suffers from the same problems, btw. And there is no way to avoid this.
However, most terminals added a lot more escape-sequences that allow applications to redraw only parts of the screen so they do not have to clear it etc.
Still, redrawing takes about 70ms on my machine which is way to slow and this is why scrolling or fast animations still look horrible on slower machines. I will try to improve this, but I don't think partial-redraws are a good solution for this.
from kmscon.
Could you actually retry with my newest changes? The "bbulk" renderer (which is now default) should improve performance by approx. 30% and the improvements to uterm-video backends should improve it by like 50%. It takes 10-15ms to render on my slow Intel Atom N450. Which is very impressive, I think.
You can use "--dumb" to select the dumb video backend, "--fbdev" to select the fbdev backend, "--render-timing" in combination with "--debug" to print timing information for every frame, "--render-engine=" to select the render engine. Available engines are: "bblit", "bbulk" and "gltex".
Make sure to pass "--dumb" or "--fbdev" if you use the "bblit" or "bbulk" renderers. Otherwise, the 3D accelerated video backend will be used which is horribly slow with these renderers. The 3D accelerated video backend should only be used with the "gltex" backend.
Thanks!
David
from kmscon.
I consider this "fixed" now. If there are still speed-problems then please reopen this. But everything works fine on my machine now. Thanks!
from kmscon.
You’re right. It’s much better now. I fashioned a test with a function in vim that scrolls complex syntax highlighted buffers up and down and that is really butter smooth now.
from kmscon.
Related Issues (20)
- config: login=/bin/bash -i fails, logs in with root privileges
- unnecessary post
- SIGUNUSED vs SIGSYS HOT 3
- Mplayer (and audio) seems to work but is invisible
- Fonts with Icons are cut off HOT 1
- major/minor reference error
- How to uninstall kmscon?
- Backspace ^H vs ^?. How to know HOT 1
- loadkeys ?? \ setfont ?? alternative
- Feature: Sixel support
- Compilation problems on ubuntu 20.04 HOT 2
- Cursor report inverts usual sense
- Does kmscon has any bug in `Esc[nE` and `Esc[nF`?
- GPU: Device is busy → When starting sway from KMSCON HOT 2
- BUG: kmscon closes graphical sessions when pressing ctrl+c inside of it
- BUG: Screen flashes when starting sway from vt1, and then starting another vt
- BUG: Sway session randomly crashes when launched from kmscon after some minutes
- My ALT key gets stuck when switching between ttys
- Unknown argument: --render-timing
- Function not implemented (display_activate() in ../kmscon-9.0.0/src/uterm_drm3d_video.c:171) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmscon.