Commit de2e4dd4 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

Merge pull request #36 from ptmt/patch-1

Add profiling for render method
parents 0a4c758f e3133abd
......@@ -4,6 +4,7 @@
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "RCTLog.h"
#import "RCTProfile.h"
#import "RNGLContext.h"
#import "GLCanvas.h"
#import "GLShader.h"
......@@ -330,7 +331,9 @@ RCT_NOT_IMPLEMENTED(-init)
});
}
else {
RCTProfileBeginEvent(0, @"GLCanvas render", nil);
[self render];
RCTProfileEndEvent(0, @"gl", nil);
_deferredRendering = false;
if (_captureFrameRequested) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment