Skip to content

Handle GPU timestamp overflow#791

Open
Poohl wants to merge 2 commits into
DiligentGraphics:masterfrom
Poohl:fix_timestamp_overflow
Open

Handle GPU timestamp overflow#791
Poohl wants to merge 2 commits into
DiligentGraphics:masterfrom
Poohl:fix_timestamp_overflow

Conversation

@Poohl
Copy link
Copy Markdown

@Poohl Poohl commented May 21, 2026

Vulkan only guarantees 36 bits of timestamp, some Intel IGPUs (Core i7-14700HX) report

 timestampValidBits          = 36
 timestampPeriod                                 = 52.0833

resulting in an overflow after just one hour.

This commit implements proper handling for an overflow while measuring time (assuming you don't have two) and loggs a warning on overflow.

@Poohl Poohl requested a review from TheMostDiligent as a code owner May 21, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant