[Kde-games-devel] Review Request: Make the default renderSize of KGameRendererClients empty.
Parker Coates
parker.coates at kdemail.net
Sat Sep 18 22:22:58 CEST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5380/
-----------------------------------------------------------
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/20100918/447c7b08/attachment.htm
More information about the kde-games-devel
mailing list