Revision 1227609

Go back to digest for 17th April 2011

Optimization in Games

Stefan Majewsky committed changes in /trunk/KDE/kdegames/palapeli/src/engine:

Optimize bevelmap generation by approximating sqrt(x^2 + y^2) without sqrt().

I used the opportunity to split a quadratic approximation formula for cos()
into a separate function for readability.

File Changes

Added 1 files
  • /trunk/KDE/kdegames/palapeli/src/engine/mathtricks.h
Modified 1 files
  • /trunk/KDE/kdegames/palapeli/src/engine/piecevisuals.cpp
2 files changed in total