[Kde-games-devel] Re: Review Request: Make the default renderSize of KGameRendererClients empty.
Parker Coates
parker.coates at kdemail.net
Mon Oct 11 23:42:25 CEST 2010
> On 2010-10-09 09:03:44, Frederik Schwarzer wrote:
> > Can you close this review please?
Sorry. The last time I tried to close this review, ReviewBoard crashed. Will try again. :)
- Parker
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5380/#review8057
-----------------------------------------------------------
On 2010-09-18 20:22:58, Parker Coates wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/5380/
> -----------------------------------------------------------
>
> (Updated 2010-09-18 20:22:58)
>
>
> Review request for KDE Games.
>
>
> Summary
> -------
>
> Currently, KGameRendererClients are created with a default renderSize of 3x3. This patch changes the default to an invalid size so that no rendering is done until a valid renderSize is given. This both saves some totally unnecessary rendering and is more likely to match the expectations of users of KGRC.
>
> I was just trying to fix a bug in KPat that I eventually tracked down to an unexpected item paint event happening with a 3x3 pixmap. The issue was intermittent due to a race condition between the KGameRenderer's threaded rendering and Qt's delayed painting making it tricky to track down. Anyway, once I found the source of the 3x3 size, the issue was easy enough to work around, but I'd rather not see other devs hit similar issues.
>
> Stefan, is this behaviour intentional? Is there any chance that this patch could cause breakages inside KGameRenderer?
>
>
> Diffs
> -----
>
> trunk/KDE/kdegames/libkdegames/kgamerendererclient.cpp 1176563
>
> Diff: http://svn.reviewboard.kde.org/r/5380/diff
>
>
> Testing
> -------
>
> Tried several of the games ported to KGR and saw no regressions. I doubt any one was depending on the default renderSize being non-empty.
>
>
> Thanks,
>
> Parker
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20101011/ff8baa6a/attachment.htm
More information about the kde-games-devel
mailing list