From 53621f07269f2a803cd31942e4a70020c37f2083 Mon Sep 17 00:00:00 2001 From: groogy Date: Tue, 16 Nov 2010 08:10:47 +0000 Subject: [PATCH] Added a capped frame rate at 100 to demonstrate that the library also supports ruby-style methods. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1650 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/testing/window-demo.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/ruby/testing/window-demo.rb b/bindings/ruby/testing/window-demo.rb index 3912dd03c..c73d2f3ef 100644 --- a/bindings/ruby/testing/window-demo.rb +++ b/bindings/ruby/testing/window-demo.rb @@ -2,6 +2,7 @@ require 'sfml/system' require 'sfml/window' app = SFML::Window.new( SFML::VideoMode.new( 800, 600 ), "My Ruby SFML" ) +app.framerate = 100 input = app.input while app.open?