summaryrefslogtreecommitdiffhomepage
path: root/dragon/framerate_diagnostics.rb
diff options
context:
space:
mode:
authorAmir Rajan <[email protected]>2020-10-13 00:45:16 -0500
committerAmir Rajan <[email protected]>2020-10-13 00:48:54 -0500
commit05cbef7fb8224332795e5685be499d81d20e7d93 (patch)
tree13ec5f1755c2f45618741f2f016ed8729dbedd41 /dragon/framerate_diagnostics.rb
parentabad948c1154d88d79b9f891e3b7315540e0b0a3 (diff)
downloaddragonruby-game-toolkit-contrib-05cbef7fb8224332795e5685be499d81d20e7d93.tar.gz
dragonruby-game-toolkit-contrib-05cbef7fb8224332795e5685be499d81d20e7d93.zip
Synced with 1.26.
Diffstat (limited to 'dragon/framerate_diagnostics.rb')
-rw-r--r--dragon/framerate_diagnostics.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/dragon/framerate_diagnostics.rb b/dragon/framerate_diagnostics.rb
index 6b952bd..7a04efc 100644
--- a/dragon/framerate_diagnostics.rb
+++ b/dragon/framerate_diagnostics.rb
@@ -12,7 +12,12 @@ module GTK
You can display these diagnostics using:
#+begin_src
- args.outputs.debug << args.gtk.framerate_diagnostics_primitives
+ def tick args
+ # ....
+
+ # IMPORTANT: Put this at the END of the ~tick~ method.
+ args.outputs.debug << args.gtk.framerate_diagnostics_primitives
+ end
#+end_src
** Draw Calls: ~<<~ Invocation Perf Counter