SetNextWindowCached(key): opt-in cached windows on top of the refresh policy (skip contents while idle), t_cached_window test, README snippet
Build & Release / build (push) Canceled after 0s

This commit is contained in:
4DBug committed 2026-10-08 20:43:56 -05:00
1 parent 63ae323772
commit b71758183b
14 files changed
+241 -10

No files matched your search

+5 -1
View File
@@ -1236,7 +1236,9 @@ function ImGuiNextWindowData()
SizeCallbackUserData = nil,
BgAlphaVal = nil,
MenuBarOffsetMinVal = ImVec2(),
RefreshFlagsVal = nil
RefreshFlagsVal = nil,
CacheKeySet = false, -- [Port] SetNextWindowCached()
CacheKeyVal = nil
}, IMGUI_NEXT_WINDOW_DATA)
end
@@ -2408,6 +2410,8 @@ function ImGuiWindow(ctx, name)
SkipItems = false,
SkipRefresh = false,
CacheSnap = nil, -- [Port] SetNextWindowCached(): state at the last refresh
CacheSkipItemsBackup = nil,
Appearing = false,