mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
pstats: Report PStats overhead more honestly
Half the overhead was being missed due to the unfortunate collector placement
This commit is contained in:
parent
c7c1c683da
commit
c66ca2ece1
@ -158,6 +158,8 @@ client_disconnect() {
|
||||
*/
|
||||
void PStatClientImpl::
|
||||
new_frame(int thread_index) {
|
||||
double frame_start = get_real_time();
|
||||
|
||||
nassertv(thread_index >= 0 && thread_index < _client->_num_threads);
|
||||
|
||||
PStatClient::InternalThread *pthread = _client->get_thread_ptr(thread_index);
|
||||
@ -178,7 +180,6 @@ new_frame(int thread_index) {
|
||||
return;
|
||||
}
|
||||
|
||||
double frame_start = get_real_time();
|
||||
int frame_number = -1;
|
||||
PStatFrameData frame_data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user