Cleanup
This commit is contained in:
+7
-1
@@ -58,12 +58,18 @@ rect.click do
|
||||
end
|
||||
|
||||
App.map_key :mouse_left, :action_name
|
||||
App.map_key :q, :quit
|
||||
|
||||
start = Time.now
|
||||
c_ = 0.0
|
||||
c_c = 0
|
||||
|
||||
App.update do |delta_time|
|
||||
if App.pressed?(:quit)
|
||||
App.exit!
|
||||
next
|
||||
end
|
||||
|
||||
c_ += delta_time
|
||||
c_c += 1
|
||||
|
||||
@@ -114,4 +120,4 @@ p "Average delta time: #{c_ / c_c}s"
|
||||
p "Average FPS (real): #{c_c / time}s"
|
||||
p "Average FPS (from dt): #{c_c / c_}"
|
||||
p "Time since start (real): #{time}s"
|
||||
p "Time since start (from dt): #{c_}s"
|
||||
p "Time since start (from dt): #{c_}s"
|
||||
|
||||
Reference in New Issue
Block a user