cg_drawstats + fixing calcRatio