Model is now able to push data into VBO

This commit is contained in:
2019-08-10 13:36:37 -05:00
parent 80a6389af4
commit 185d760a83
5 changed files with 38 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ class IMICFPS
if CACHE[@type].is_a?(Hash)
if CACHE[@type][@file_path]
@model = CACHE[@type][@file_path]#.dup # Don't know why, but adding .dup improves performance with Sponza (1 fps -> 20 fps)
puts "Used cached model for: #{@file_path.split('/').last}"
puts "Used cached model for: #{@file_path.split('/').last}" if $debug.get(:stats)
found = true
end
end