Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Preserve the NT calendar range with portable 100ns time - #5

Draft
AlenHay wants to merge 1 commit into
NeverCookFirst:codex/native-rendererfrom
AlenHay:codex/sdk-nt-calendar-pr-20261007
Draft

AlenHay wants to merge 1 commit into
NeverCookFirst:codex/native-rendererfrom
AlenHay:codex/sdk-nt-calendar-pr-20261007

Conversation

@AlenHay

@AlenHay AlenHay commented Oct 7, 2026

Copy link
Copy Markdown

Linux system_clock commonly uses nanoseconds, which cannot represent the full NT calendar range. Preserve 100ns system time during FILETIME conversion and the Xbox RtlTimeFieldsToTime calculation, avoiding overflow for valid years 1601 through 9999.

Validation from the tested integration: real kernel-body fixtures and chrono unit cases cover boundary years, exact subsecond conversions, invalid fields and unchanged output on rejection; original behavior is exercised as a negative control. The selected SDK suite passed 225 checks with four existing BitStream skips and the unbuilt PPC execution target excluded.

This is an independent draft against codex/native-renderer (dependency PR #1). The related SDK PRs share only test-registration infrastructure; their combined production/test files match the validated integration 2897c31b1407dd96480dc25965f8ee7807f00e0f. CMake registrations were restricted to each PR's fixtures and checked for missing files. These isolated branches were not separately rebuilt; validation above describes the prior integration run, not new CI results.

The exact tested integration is published at https://github.com/AlenHay/rexglue-sdk/tree/codex/runtime-correctness-20261007 for the renderer dependency pin. Game inputs, generated game code, shader banks, captures and saves are excluded.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant