Version 5 (modified by sam, 12 years ago) (diff)

--

Optimisation logbook

A list of optimisation decisions and their effect on performances.

2011/09/02

  • [885] [886] [888] Started importing Ryan Sammartino's PS3 trigonometry library in the core ().
  • [890] Do the Taylor series on x / π instead of x: results in a measurable speed increase in sin() (2% with ppu-lv2-g++, almost 1% with SNC)
  • [891] Do the Taylor series in two steps, for better pipelining at the cost of one extra multiplication: a notable speed increase in sin() (11% with ppu-lv2-g++, 2% with SNC)

Note: there is currently no way to build all the engine using SNC. However, individual files can be built using a command along the following one:

touch trig.cpp
ps3ppusnc.exe -c trig.cpp -O3 -Xreorder=1 -Xfastmath=1 -o liblol_a-trig.o -I.
make