Comments (6)
Perhaps this means you have bad cooling? tdesktop draws on CPU so high CPU load is expected. If you don't like this, you can use web version as browsers usually draw with GPU.
from tdesktop.
@Aokromes it's not completed. You're not helping.
@ilya-fedin this is on NoFan CR-80EH so you can expect the system to idle at 54-63C, this is perfectly normal in such a circumstance. On another system with the same cooler, but one which uses Ryzen 2700 on Gentoo (and thus Telegram Desktop from Portage), this issue does not exist. What codec is used to animate the stickers?
Edit: Sorry, I missed the part about drawing on CPU. Maybe, just maybe, the animation of stickers can be offloaded to OpenGL? What are the prospects for this? https://webhamster.com/ is also drawn on CPU by the browser and there's no such issue.
from tdesktop.
Maybe, just maybe, the animation of stickers can be offloaded to OpenGL?
Only if you would write an implementation. No one else has time/motivation for this. But offloading only stickers wouldn't really help as lots of time is likely to be spent in Qt while compositing CPU and GPU driven parts of the UI. Qt copies content of entire window right now when compositing and that's likely why it's worse than your browser. To solve that, one has to rewrite entire tdesktop to Electron, Flutter or QtQuick. I'm doubt anyone would do that, there are already web clients wrapped in Electron which are such modern GPU-driven clients.
from tdesktop.
it's not completed. You're not helping.
It's completed. If you want a GPU-driven client, switch to web clients. No one will rewrite tdesktop.
from tdesktop.
Only if you would write an implementation. No one else has time/motivation for this
Could you tell me please which part of the code does this?
Qt copies content of entire window right now when compositing and that's likely why it's worse than your browser
Is this a new behavior in Qt6? The Gentoo system I have still compiles Telegram against Qt5 and there's no such issues there.
To solve that, one has to rewrite entire tdesktop to Electron
Poor RAM.
Flutter
I don't think this is a viable choice, Google just laid off a lot of people working on it.
Thank you for your patient and informative response.
from tdesktop.
Could you tell me please which part of the code does this?
Well, the problem is entire codebase, as it's written in QtWidgets which is CPU-based. All the widgets in https://github.com/desktop-app/lib_ui and tdesktop itself have to be rewritten from QPainter to OpenGL. The stickers themselves are decoded with https://github.com/Samsung/rlottie and wrapped into QImages with https://github.com/desktop-app/lib_lottie but porting only them to OpenGL is unlikely to provide any improvement as the problem is with compositing the window by Qt rather than decoding the stickers.
Is this a new behavior in Qt6?
Yeah, since Qt 6.4, when they ported QtWidgets compositing from direct OpenGL to RHI.
Poor RAM.
Seem to be ok for most of people... And apparently better than poor CPU.
from tdesktop.
Related Issues (20)
- Linux client tray icon don't work after system upgrade HOT 7
- Issue on building from source on macOs 12.7.4 with Xcode 14.2 HOT 4
- missing message counter when selecting "delete all from {user}" in all groups HOT 6
- Including chat information when exiting HOT 2
- Сontact list (at the left) now has only one visual state (wide-open or icons) HOT 22
- Cant connect to Test Server AUTH_TOKEN_INVALID2 HOT 2
- Telegram loses context when closed to tray HOT 1
- Music Player HOT 1
- [flatpak] allow for client side theming HOT 1
- If I debug the tag tdesktop-0.5.0 code, will it be able to connect to the Telegram API servers and send and receive messages? HOT 2
- Option to disable startmenu shortcut creation for portable installations HOT 3
- fedora linux error install HOT 1
- When you make a call, the screen saver turns on or the screen turns off HOT 2
- Media dialog not closed in Topics group when Go To Message is selected
- premium subscription issue HOT 2
- Ads platform improvement HOT 1
- Problem displaying monospace font HOT 3
- Option for system default theme mode HOT 1
- Compose Key not working HOT 6
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 tdesktop.