1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-07 15:33:52 +00:00
Bartosz Taudul f428a5b52b
Fix popup of collapsed items near timeline start.
There are various changes involved into making this work:

1. Zone size (zsz) is no longer clamped to the timeline viewport area.
   This clamping has to be removed to prevent otherwise uncollapsed zones
   from apparently becoming small near the viewport borders. Such a small
   zone would then be collapsed, resulting in unwanted popping.
   Interesingly, only the CPU zones were clamped before. GPU zones were
   not.
2. Iteration over visible zones has to start before the visible timeline
   viewport area. Without this some zones that would be otherwise
   included in the collapsed area (started by a previous zone) may be
   fully visible. This causes child zones to be drawn and produces
   unwanted popping. (At this point threshold for continuing collapsed
   area is greater than threshold for starting it.)
3. Since the iteration now starts before timeline visible area, it may so
   happen that everything found will be in a small slice of timeline that
   is outside the screen. To fix this, the end time of last found item is
   checked against the viewport start time.
   It is always valid to access *(zitend-1), as it is in each case done
   after null set check (it == zitend).

Similar but simpler fix was also applied to per-thread call stack samples.
2023-03-09 00:38:23 +01:00
..
2021-12-01 21:52:31 +01:00
2021-12-01 21:52:31 +01:00
2022-07-24 01:39:51 +02:00
2021-11-04 22:30:16 +01:00
2021-10-07 23:28:40 +02:00
2021-10-07 23:28:40 +02:00
2021-05-17 12:07:06 +02:00
2022-08-28 14:50:38 +02:00
2023-02-26 15:30:03 +01:00
2021-05-20 17:30:54 +02:00
2022-10-15 13:06:08 +02:00
2023-01-27 20:00:05 +01:00
2023-01-27 20:00:05 +01:00
2023-01-03 13:56:56 +01:00
2022-09-04 14:46:51 +02:00