Revision 692361

Go back to digest for 29th July 2007

Optimization in Games

Dmitry Suzdalev committed changes in /trunk/KDE/kdegames/katomic:

Stop drawing walls as part of background.
This eliminates the need to drop bkgnd cache on each level change Instead use QGraphicsPixmapItem with walls painted on its pixmap

Btw, if some of you use QGraphicsPixmapItem and don't care about mouse clicks & collision detection on it, consider using:

myItem->setShapeMode(QGraphicsPixmapItem::BoundingRectShape)

as this greatly improves perfomance when using setPixmap on this item

File Changes

Modified 4 files
  • /trunk/KDE/kdegames/katomic
  •   /fielditem.cpp
  •   /gamewidget.cpp
  •   /playfield.cpp
  •   /playfield.h
4 files changed in total