Improved shader error formatting, hide puts statements that are only useful in debug mode.

This commit is contained in:
2018-12-11 11:56:53 -06:00
parent 6341c3b817
commit 82265394eb
7 changed files with 31 additions and 13 deletions

View File

@@ -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

View File

@@ -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)