Commit d449544
committed
currently: ImGui::SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags_TryToAvoidRefresh);
- This is NOT meant to replace frame-wide/app-wide idle mode.
- This is another tool: the idea that a given window could avoid refresh and reuse last frame contents.
- I think it needs to be backed by a careful and smart design overall (refresh policy, load balancing, making it easy and obvious to user).
- It's not there yet, this is currently a toy for experimenting.
My other issues with this:
- It appears to be very simple, but skipping most of Begin() logic will inevitably lead to tricky/confusing bugs. Let's see how it goes.
- I don't like very much that this opens a door to varying inconsistencies
- I don't like very much that it can lead us to situation where the lazy refresh gets disabled in bulk due to some reason (e.g. resizing a dock space) and we get sucked in the temptation to update for idle rather than update for dynamism.
1 parent 0b30947 commit d449544
4 files changed
+79
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6334 | 6334 | | |
6335 | 6335 | | |
6336 | 6336 | | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
| 6344 | + | |
| 6345 | + | |
| 6346 | + | |
| 6347 | + | |
| 6348 | + | |
| 6349 | + | |
| 6350 | + | |
| 6351 | + | |
| 6352 | + | |
| 6353 | + | |
| 6354 | + | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
| 6360 | + | |
6337 | 6361 | | |
6338 | 6362 | | |
6339 | 6363 | | |
| |||
6532 | 6556 | | |
6533 | 6557 | | |
6534 | 6558 | | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
6535 | 6562 | | |
6536 | 6563 | | |
6537 | 6564 | | |
6538 | 6565 | | |
6539 | | - | |
| 6566 | + | |
6540 | 6567 | | |
6541 | 6568 | | |
6542 | 6569 | | |
| |||
7027 | 7054 | | |
7028 | 7055 | | |
7029 | 7056 | | |
| 7057 | + | |
| 7058 | + | |
| 7059 | + | |
| 7060 | + | |
7030 | 7061 | | |
7031 | 7062 | | |
7032 | 7063 | | |
7033 | 7064 | | |
7034 | 7065 | | |
7035 | | - | |
| 7066 | + | |
| 7067 | + | |
7036 | 7068 | | |
7037 | 7069 | | |
7038 | 7070 | | |
7039 | 7071 | | |
7040 | 7072 | | |
7041 | 7073 | | |
7042 | 7074 | | |
7043 | | - | |
| 7075 | + | |
7044 | 7076 | | |
7045 | 7077 | | |
7046 | 7078 | | |
| |||
7086 | 7118 | | |
7087 | 7119 | | |
7088 | 7120 | | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
7089 | 7126 | | |
7090 | 7127 | | |
7091 | 7128 | | |
| |||
7128 | 7165 | | |
7129 | 7166 | | |
7130 | 7167 | | |
7131 | | - | |
| 7168 | + | |
| 7169 | + | |
7132 | 7170 | | |
7133 | 7171 | | |
| 7172 | + | |
| 7173 | + | |
| 7174 | + | |
| 7175 | + | |
| 7176 | + | |
| 7177 | + | |
7134 | 7178 | | |
7135 | 7179 | | |
7136 | 7180 | | |
| |||
7815 | 7859 | | |
7816 | 7860 | | |
7817 | 7861 | | |
| 7862 | + | |
| 7863 | + | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
7818 | 7870 | | |
7819 | 7871 | | |
7820 | 7872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
1117 | 1118 | | |
1118 | 1119 | | |
1119 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1120 | 1130 | | |
1121 | 1131 | | |
1122 | 1132 | | |
| |||
1129 | 1139 | | |
1130 | 1140 | | |
1131 | 1141 | | |
| 1142 | + | |
1132 | 1143 | | |
1133 | 1144 | | |
1134 | 1145 | | |
| |||
1150 | 1161 | | |
1151 | 1162 | | |
1152 | 1163 | | |
| 1164 | + | |
1153 | 1165 | | |
1154 | 1166 | | |
1155 | 1167 | | |
| |||
2534 | 2546 | | |
2535 | 2547 | | |
2536 | 2548 | | |
| 2549 | + | |
2537 | 2550 | | |
2538 | 2551 | | |
2539 | 2552 | | |
| |||
3007 | 3020 | | |
3008 | 3021 | | |
3009 | 3022 | | |
| 3023 | + | |
3010 | 3024 | | |
3011 | 3025 | | |
3012 | 3026 | | |
| |||
3032 | 3046 | | |
3033 | 3047 | | |
3034 | 3048 | | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
3035 | 3052 | | |
3036 | 3053 | | |
3037 | 3054 | | |
| |||
0 commit comments