<div dir="ltr"><div>Hi,<br><br></div>I can confirm the speed decrease on the current master. I can also confirm the crashes on my box (kubuntu + kbreakout from master).<br><div><div><br></div><div>I think I also know why slow-down bug appears. The log output shows that the interval is cut in half from 16 to 8. However, the documentation [1] states:</div><div><br></div><div>"The Timer type is synchronized with the animation timer. Since the
animation timer is usually set to 60fps, the resolution of Timer will be
at best 16ms."</div><div><br></div><div>Unfortunately, I have no idea how to work around this limitation. Has anybody else an idea?<br></div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,</div><div class="gmail_extra">Julian</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://doc.qt.io/qt-5/qml-qtqml-timer.html">http://doc.qt.io/qt-5/qml-qtqml-timer.html</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-06 13:32 GMT+01:00 Frederik Schwarzer <span dir="ltr"><<a href="mailto:schwarzer@kde.org" target="_blank">schwarzer@kde.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_-1191688491897410908HOEnZb"><div class="gmail-m_-1191688491897410908h5"><br>
<br>
Am 03.01.2018 23:31 schrieb Albert Astals Cid:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
El dimecres, 3 de gener de 2018, a les 20:20:38 CET, Frederik Schwarzer va<br>
escriure:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Dienstag, 2. Januar 2018 00:34:42 CET Albert Astals Cid wrote:<br>
> El dissabte, 30 de desembre de 2017, a les 3:15:21 CET, Frederik Schwarzer<br>
> va<br>
><br>
> escriure:<br>
> > Hi,<br>
><br>
> Hey<br>
><br>
> > in KBreakout I see the following:<br>
> > After a minute or so of playing a level, the ball speed decreases<br>
> > dramatically. From the source I can see that this is intended but comes<br>
> > with also cutting the game timer interval in half.<br>
> ><br>
> > console.log output:<br>
> > qml: Speed: 2.0837250000000003<br>
> > qml: Interval: 16<br>
> > qml: Speed: 1.0418625000000001<br>
> > qml: Interval: 8<br>
><br>
> Can you share the patch you use for this output?<br>
<br>
Sorry, not at that computer at the moment. But it shows the correct values.<br>
Both values are cut in half which (as I suspect the intention) should result<br>
in the same movement speed. Not sure _why_ that is done but well. I can<br>
send the patch at the week end.<br>
<br>
> > For me however, it seems that only the ball speed value has any effect.<br>
> > So<br>
> > effectively, the ball speed is cut in half.<br>
> ><br>
> > Can anyone check on their boxes? Thanks.<br>
><br>
> I can't really see it getting much slower i think, can you record it and<br>
> put it in youtube or something?<br>
<br>
<a href="https://vimeo.com/249561562" rel="noreferrer" target="_blank">https://vimeo.com/249561562</a><br>
<br>
At around second 52 it happens. The ball movement is not that clunky as seen<br>
in the video but I think it's well visible. I did the video with the<br>
released version 1.2.0 in KF 5.18.0 in Kubuntu 16.04.<br>
<br>
BTW. One in ten starts of the application crashed here at least with the<br>
window maximised. I saw the same on the other computer in the git master<br>
version. Can you please check that as well on your box?<br>
</blockquote>
<br>
I haven't seen any crash :S<br>
</blockquote>
<br></div></div>
Weird. I have those quite regularily on two systems with different versions of Qt/KF/KBreakout. Both Debian-based though.<br>
I just made a gdb run but cannot read much out of it. Maybe you can see something there. As I said, it happens every 10th start and sometimes 3 times in a row.<br>
<br>
<a href="https://paste.kde.org/phfwyxtkn/1kaxca" rel="noreferrer" target="_blank">https://paste.kde.org/phfwyxtk<wbr>n/1kaxca</a><br>
<br>
But you could see the speed decrease, right?<br>
<br>
Cheers,<br>
Frederik<br>
</blockquote></div><br></div></div></div></div>