restore multithreading on iOS and use DisplayLink to decouple rendering from the main loop

This commit is contained in:
2019-03-01 15:16:05 +01:00
parent 8cd02787b3
commit 27f4cb3ba8
4 changed files with 69 additions and 81 deletions

View File

@@ -492,6 +492,7 @@ void NodeStrokePreview::draw_stroke()
gl.save();
node->draw_stroke_immediate();
gl.restore();
node->app_redraw();
node->async_end();
std::this_thread::sleep_for(std::chrono::milliseconds(30));
}