Merge: gamnit: new services and a lot of bug fixes and performance improvements
[nit.git] / lib / gamnit / depth / shadow.nit
index 213b461..75178f5 100644 (file)
@@ -52,7 +52,7 @@ redef class App
 
        private var perf_clock_shadow = new Clock is lazy
 
-       redef fun on_create
+       redef fun create_gamnit
        do
                super
 
@@ -84,8 +84,6 @@ redef class App
                var light = app.light
                if not light isa LightCastingShadows then return
 
-               perf_clock_shadow.lapse
-
                # Make sure there's no errors pending
                assert glGetError == gl_NO_ERROR
 
@@ -116,8 +114,6 @@ redef class App
                # Take down, bring back default values
                glBindFramebuffer(gl_FRAMEBUFFER, shadow_context.screen_framebuffer)
                glColorMask(true, true, true, true)
-
-               perfs["gamnit shadows prep"].add perf_clock_shadow.lapse
        end
 
        # ---