Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Joncom

I've got quite a lot of draws going on...

/><br />
<br />
How come "Draw" is sitting at a steady 0.0ms?			</div>
		</div>
			<div class=

1 decade ago by lTyl

If you&039;re overwriting your draw in Game without calling this.parent() or not adding the #ig.graph.beginClock('draw'); & ig.graph.endClock('draw'); you will not have the graph working for draw. Same applies for Entity update and entity check

1 decade ago by Joncom

Is that then to say that all code outside the this.parent() call in the main.js draw function is always excluded from the draw graph?

I see that the draw graph is clocked in graphic-panel.js using:
ig.Game.inject({    
    draw: function() {
        ig.graph.beginClock('draw');
        this.parent();
        ig.graph.endClock('draw');
    },
    ...
});

Is there any simple way to make it inject above/after the main.js draw code so it includes everything?
Page 1 of 1
« first « previous next › last »