mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
pstats: Deprecate PStatClient::resume_after_pause()
It creates a clock skew in the PStats timing information that cannot be corrected for in the server. If we want to bring this back, we should either have a global `pause()` and `resume()` (so we can properly pause collection in the meantime, and have a time to reset to, but we'd need to think about how to handle threading) or we should add a `drop_frame()` to drop the current frame. If we must bring it back in its current form, then we need to communicate the clock reset to the server, so that it can properly take it into account.
This commit is contained in:
parent
f3cf30089b
commit
76677e5c00
@ -95,6 +95,8 @@ is_connected() {
|
||||
* Resumes the PStatClient after the simulation has been paused for a while.
|
||||
* This allows the stats to continue exactly where it left off, instead of
|
||||
* leaving a big gap that would represent a chug.
|
||||
*
|
||||
* @deprecated Do not use this, it creates inaccurate timing information.
|
||||
*/
|
||||
INLINE void PStatClient::
|
||||
resume_after_pause() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user