Skip to content

Commit 5fdff7a

Browse files
committed
engine: Add comment on refresh_buffer() performance
1 parent ea791f4 commit 5fdff7a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

engine/src/simulation.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,18 @@ StateId SimulationMachine::StepBegin::impl(SimulationContext& ctx) {
787787
}
788788

789789
// Refresh the double buffer
790+
//
791+
// Note: this line can easily break your time budget with the current server
792+
// implementation. If you need better performance, disable the server in the
793+
// stack file configuration:
794+
//
795+
// {
796+
// "version": "4",
797+
// "server": {
798+
// "listen": false
799+
// }
800+
// }
801+
//
790802
ctx.server->refresh_buffer();
791803

792804
// Run time-based triggers

0 commit comments

Comments
 (0)