nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glesv2: intro param to get names of bound entities
[nit.git]
/
lib
/
gamnit
/
depth
/
depth.nit
diff --git
a/lib/gamnit/depth/depth.nit
b/lib/gamnit/depth/depth.nit
index
9fc0ba7
..
a9a446a
100644
(file)
--- a/
lib/gamnit/depth/depth.nit
+++ b/
lib/gamnit/depth/depth.nit
@@
-52,19
+52,26
@@
redef class App
normals_program.use
normals_program.mvp.uniform app.world_camera.mvp_matrix
normals_program.use
normals_program.mvp.uniform app.world_camera.mvp_matrix
+ frame_core_depth_clock.lapse
for actor in actors do
for leaf in actor.model.leaves do
leaf.material.draw(actor, leaf)
end
end
for actor in actors do
for leaf in actor.model.leaves do
leaf.material.draw(actor, leaf)
end
end
+ perfs["gamnit depth actors"].add frame_core_depth_clock.lapse
frame_core_world_sprites display
frame_core_world_sprites display
+ perfs["gamnit depth sprites"].add frame_core_depth_clock.lapse
# Toggle writing to the depth buffer for particles effects
glDepthMask false
for system in particle_systems do system.draw
glDepthMask true
# Toggle writing to the depth buffer for particles effects
glDepthMask false
for system in particle_systems do system.draw
glDepthMask true
+ perfs["gamnit depth particles"].add frame_core_depth_clock.lapse
frame_core_ui_sprites display
frame_core_ui_sprites display
+ perfs["gamnit depth ui_sprites"].add frame_core_depth_clock.lapse
end
end
+
+ private var frame_core_depth_clock = new Clock
end
end