Skip to content
Snippets Groups Projects
Commit 6bde9df3 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: fix 100%cpu issue

parent 2869eec4
No related branches found
No related tags found
No related merge requests found
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
void messageFromCpp (void *self, std::string level, std::string msg) void messageFromCpp (void *self, std::string level, std::string msg)
{ {
if(level == "RequestRender"){ if(level == "RequestRender"){
[(__bridge id)self requestRender]; [(__bridge id)self performSelectorOnMainThread:@selector(requestRender) withObject:nil waitUntilDone:YES];
[[NSNotificationCenter defaultCenter] postNotificationName:@"refreshParameters" object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:@"refreshParameters" object:nil];
} }
else if(level == "Progress"){ else if(level == "Progress"){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment