bench/bench_spinning_cube.rb in remogatto-ffi-opengl-0.2.0 vs bench/bench_spinning_cube.rb in remogatto-ffi-opengl-0.2.1
- old
+ new
@@ -1,5 +1,6 @@
-require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib ffi-opengl]))
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
+require 'ffi-opengl'
require 'benchmark'
MAX_FRAMES = 30000