lib/lotu/systems/fps_system.rb in lotu-0.1.9 vs lib/lotu/systems/fps_system.rb in lotu-0.1.10
- old
+ new
@@ -12,10 +12,10 @@
@samples = opts[:samples]
end
def update
@ticks += 1
- @accum += $window.dt
+ @accum += $lotu.dt
if @ticks >= @samples
@fps = @ticks/@accum
@ticks = 0
@accum = 0.0
end