Version: 0.3.1 (using Devel) OS: Linux This is not a direct duplicate of #203064, i am talking about windowed KBlocks and only one theme. This happens only with Egyptian theme, Oxygen theme is fast. The reason behind both bugs might be the same. Bug was tested by several people with different hardware/software/drivers configuration (Russain: http://www.linux.org.ru/forum/talks/6727242 ). KBlocks eats 100% of one core of my AMD Phenom II X4 945 and has a very slow response time. That's just not normal for a tetris game. Tested with native/raster graphicssystem. There is a workaround for Egyptian theme to work smooth, see steps to reproduce. Reproducible: Always Steps to Reproduce: 1) Open KBlocks. Do not start the game, set theme to Oxygen, do not start the game, close KBlocks. 2) Open KBlocks (the theme is Oxygen now). Do not start the game, set theme to Egyptian. Start the game. There are no lags, cpu usage is ok. 3) Open KBlocks (the theme is Egyptian now). Start the game. There are lags, the game is slow and eats 100% of a cpu core. 4) Any further launches of KBlocks (with Egyptian theme) → lags. 5) Starting the game with Oxygen theme is always smooth. Expected Results: The game (tetris) should always run smooth on every supplied theme. Everything is ok when using Oxygen theme.
s/Russain/Russian/, sorry.
Steps to reproduce were checked by three different people (including me) with different software/hardware configuration.
> 2) Open KBlocks (the theme is Oxygen now). Do not start the game, set theme to Egyptian. Start the game. There are no lags, cpu usage is ok. Close KBlocks after step 2, of course. It should be: 2) Open KBlocks (the theme is Oxygen now). Do not start the game, set theme to Egyptian. Start the game. There are no lags, cpu usage is ok. Close KBlocks.
I can confirm that this bug is present on my system too, and that the supplied "workaround" works for me.
*** This bug has been confirmed by popular vote. ***
Created attachment 63618 [details] smooth
Created attachment 63619 [details] laggy
I can confirm this but it seems that this applies for Oxygen theme as well. If you run KBlocks and start playing immediately you'll get lags, but if you go to Settings and change theme before playing everything will be smooth. I have also noticed that the game looks different at these two cases. You can see that on the screens above. First screen shows «smooth» case and the second is how «laggy» looks like. It seems that lags are caused by some scaling which is not performed after changing theme.
I can't reproduce this (lags) anymore on 4.8 (git). Can anybody confirm? But there is a different bug: kblocks theme is shrinked after start until a window resize.
Confirm. After update to ubuntu 11.10 (kde 4.7.1) kblocks works much faster.
> Confirm. After update to ubuntu 11.10 (kde 4.7.1) kblocks works much faster. But! The game "Human vs. AI" is unbelivable slow when playing fullscreen. When playing in small window everything is ok.
With raster grapicssystem (run as 'kblocks --graphicssystem raster'), fast enough but cpu usage of this wanderful softwore is not acceptable yet.
I can reproduce the high cpu usage (100% of one Phenom core) on KDE 4.8.3 + Qt 4.8.1, using raster graphicssystem.
No, wait. Not 100% of one core, but only 1/3 of one core, and that depends on resolution used. But that's still way to much.
*** Bug 300762 has been marked as a duplicate of this bug. ***
«kblocks --graphicssystem native» is still laggy and unresposive. kblocks — 84% of one core¸ X — 65% of one core.
Most time is spent in QSvgTinyDocument::draw(QPainter*, QString const&, QRectF const&) (not directly inside that method, but nested). Aren't svg images cached as pixmaps?
The way Qt does the caching is weird. I debugged it years ago, after facing the same slowness in KTuberling (see bug 203742). From what I remember, sizes must not change between creating the item and rendering it.
In fact, everything is ok from the CPU usage side with kf5 port. The block disappearing animation is laggy (especially when there are several rows). The style size is still buggy: when the game is started, everyting is small, an a minor window resize scretches the style to fill the whole window.
Closing, the size issue is different from this and should probably be filed as a separate bug.
I dont want the instalation in my computer. I want to take it's far way from here!