mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Improved shader error formatting, hide puts statements that are only useful in debug mode.
This commit is contained in:
@@ -53,14 +53,14 @@ class IMICFPS
|
||||
|
||||
parse
|
||||
|
||||
puts "#{@file_path.split('/').last} took #{((Process.clock_gettime(Process::CLOCK_MONOTONIC, :float_millisecond)-start_time)/1000.0).round(2)} seconds to parse"
|
||||
puts "#{@file_path.split('/').last} took #{((Process.clock_gettime(Process::CLOCK_MONOTONIC, :float_millisecond)-start_time)/1000.0).round(2)} seconds to parse" if $debug
|
||||
|
||||
# populate_buffers
|
||||
|
||||
face_count = 0
|
||||
@objects.each {|o| face_count+=o.faces.size}
|
||||
@objects.each_with_index do |o, i|
|
||||
puts " Model::Object Name: #{o.name}, Faces: #{o.faces.size}"
|
||||
puts " Model::Object Name: #{o.name}, Faces: #{o.faces.size}" if $debug
|
||||
end
|
||||
$window.number_of_faces+=face_count
|
||||
@model_has_texture = false
|
||||
|
||||
@@ -50,7 +50,7 @@ class IMICFPS
|
||||
end
|
||||
end
|
||||
|
||||
puts "Total Lines: #{lines}"
|
||||
puts "Total Lines: #{lines}" if $debug
|
||||
calculate_bounding_box(@vertices, @bounding_box)
|
||||
@objects.each do |o|
|
||||
calculate_bounding_box(o.vertices, o.bounding_box)
|
||||
|
||||
Reference in New Issue
Block a user