Merge NativeUpdate and NativeRender, we always call them together.

This commit is contained in:
Henrik Rydgård committed 2023-08-07 22:50:57 +02:00
1 parent 096c168dd7
commit bcae36d8cb
10 files changed
+48 -60

No files matched your search

+2 -3
View File
@@ -210,8 +210,7 @@ void UpdateRunLoop() {
sleep_ms(16);
return;
}
NativeUpdate();
NativeRender(graphicsContext);
NativeFrame(graphicsContext);
}
void KeepScreenAwake() {
@@ -325,7 +324,7 @@ void Core_ProcessStepping() {
}
// Many platforms, like Android, do not call this function but handle things on their own.
// Instead they simply call NativeRender and NativeUpdate directly.
// Instead they simply call NativeFrame directly.
bool Core_Run(GraphicsContext *ctx) {
System_Notify(SystemNotification::DISASSEMBLY);
while (true) {