|
@@ -172,7 +172,11 @@ public:
|
|
|
count--;
|
|
|
front = (front + 1) % frame_buffers.size();
|
|
|
|
|
|
- [p_cmd_buffer->get_command_buffer() presentDrawable:drawable afterMinimumDuration:present_minimum_duration];
|
|
|
+ if (vsync_mode != DisplayServer::VSYNC_DISABLED) {
|
|
|
+ [p_cmd_buffer->get_command_buffer() presentDrawable:drawable afterMinimumDuration:present_minimum_duration];
|
|
|
+ } else {
|
|
|
+ [p_cmd_buffer->get_command_buffer() presentDrawable:drawable];
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
|