Skip to content

Rework query object handling - #28

Open
whitebelyash wants to merge 2 commits into
MojoLauncher:masterfrom
whitebelyash:feat/query-rewrite
Open

Rework query object handling#28
whitebelyash wants to merge 2 commits into
MojoLauncher:masterfrom
whitebelyash:feat/query-rewrite

Conversation

@whitebelyash

Copy link
Copy Markdown
Contributor

Some small fixes around query objects & timer query handling. Fixes GPU usage in F3.

Needs more testing because we don't actually track types of the queries.

whitebelyash and others added 2 commits July 4, 2026 21:17
GL_QUERY_RESULT_AVAILABLE is now handled and receives GL_TRUE instead of arbitrary number. Other requests get "100" instead. Should be enough.

Check for disjoint timer query was redone, the env variable to force faked queries is now `LTW_FAKE_TIMER_QUERIES=1`

Additionally glQueryCounter is overriden now too, it wasn't before.

Tested 26.3-s2 with enabled/disabled disjoint timer queries - no regressions. Same with 1.21.11.
@whitebelyash

Copy link
Copy Markdown
Contributor Author
GL_QUERY_RESULT_AVAILABLE is now handled and receives GL_TRUE instead of arbitrary number. Other requests get "100" instead. Should be enough.

Check for disjoint timer query was redone, the env variable to force faked queries is now `LTW_FAKE_TIMER_QUERIES=1`

Additionally glQueryCounter is overriden now too, it wasn't before.

Tested 26.3-s2 with enabled/disabled disjoint timer queries - no regressions. Same with 1.21.11.

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