fix(agc): grow the storage cache budget while it evicts under pressure #6194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6194"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Thunderhawkk on 2026-10-15T01:43:22Z.
What
The storage image cache's budget grows while it evicts entries under its own budget and shrinks while the device-local heap is under memory pressure, so a title whose storage working set does not fit the initial share (a quarter of the heap or of the reported budget) stops recreating the same surfaces every frame.
Growth: 16 or more budget evictions in one second, one eighth of the budget per step (at least 64 MiB), capped at half the heap's size or half the reported budget, only while the step plus a reserve of 2 GiB or an eighth of the reported budget stays within the reported budget. Shrink: the same step while the reported usage plus the reserve exceeds the reported budget, never below the existing formula. Every change logs
[textures] storage cache budget X MiB -> Y MiB (...).The churn this addresses and the measurements behind the thresholds are in #5961.
Tested
Windows 11 (26200), RTX 5070 Ti 16 GiB, NVIDIA 617.42, MinGW GCC 15.2.0; Marvel's Wolverine PPSA03671 01.001.005 converted with
--windows, 180 s window, warm shader cache, no environment overrides:APS5_TEXTURE_CACHE_MIB=6144on main produces a similar creation count, so the growth reproduces the manual budget.agc_driver_graphics_testspasses (newNextStorageBudgetcases);python3 tools/check_conventions.py --base origin/mainpasses;tools/pr_overlap.py --branch fix-storage-budgetreports no overlap with open pull requests.Not checked on Linux, macOS or a console; one GPU was available.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (no unimplemented path added).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T04:11:04Z.
Tested on Linux: Ubuntu 24.04, kernel 7.0, RTX 5080 16 GiB, NVIDIA 595.99.02, PPSA15304. Base:
ab9a47684plus my open #6174, #6185 and #6186, with this PR's three commits on top (no conflicts). The fixed-camera window was 200 s after loading the save, with a warm shader cache and no environment overrides. Presents are counted per 10 s.No VRAM pressure. The desktop held 0.9 GiB, the reported budget was 14.8 GiB and the storage budget 3.7 GiB. The cache saw 0 to 40 cache-eviction write-backs per 10 s, far below the growth threshold, so this PR has nothing to do there.
Another process holding 3 GiB of device memory. This is a plain CUDA allocation, similar to a browser on the desktop. The reported budget was 11.5 GiB and the storage budget 2877 MiB.
Of the three #6194 runs without a complete window, two crashed (below) and one stayed in the menu for 10 minutes because of my input script, without a crash.
The growth works as described: 2887 -> 3248 -> 3654 -> 4111 -> 4625 -> 5203 MiB within the first minutes, and the churn disappears.
Cost. In three of the four runs the device-local heap then reached its budget (
heap 0 uses 11260 of its 11261 MiB budget). Device buffers were then placed in host memory (7 to 9 allocations per run), and the pool recovered fromVK_ERROR_OUT_OF_DEVICE_MEMORYonce or twice per run. Two of those runs crashed: a guest general protection fault right when gameplay started, and a segfault in the menu. Without this PR none of the runs reached the heap budget.The budget kept oscillating between 4.3 and 5.6 GiB. A grow step is only checked against the usage at that moment, and other consumers grow afterwards (sampled textures, device buffers, the staging pool). The shrink comes only at the next budget read, after allocations have already failed.
The crashes may well be in my own reclaim path from #6174, which is in this base, so I would not blame them on this PR. Reaching the heap budget, however, comes from the growth.
Suggestions:
With either, the gain shown above should hold without the heap running full. #6174 and this PR merge cleanly with each other, so neither needs a "Depends on".
Imported from boykopovar/AnyPS5. Originally posted by Thunderhawkk on 2026-10-15T05:31:58Z.
Implemented suggestion 1 in
StorageBudgetCap(ShaderResources.hpp): the cap now takes the space outside both texture caches, the sampled cache's remaining headroom and the growth check's reserve out of the reported budget, instead of half the reported budget.sampledRemainingis the sampled cache's budget minus its bytes, i.e. only what it can still claim; a sampled cache at or over its budget holds back nothing. My first cut held back the sampled cache's whole budget — which in this codebase covers both caches — and that clamped the storage budget to its floor on the title the thresholds come from and the churn came back, so the remaining-headroom reading is the one that works.Suggestion 2 (shrink on the allocation-recovery path) is not wired: with the cap the growth no longer walks into the sampled cache's claim or the reserve, so the fill-then-fail-then-shrink cycle should not start from this cache. If it still does in your setup I'll wire the shrink next.
Validation on Wolverine PPSA03671 (Windows 11, RTX 5070 Ti 16 GiB, driver 617.42), 12-minute run with the default registration admission:
3807 -> 4283 -> 4818 -> 5420 -> 5533 MiB(four steps) and shrank5533 -> 4842 -> 4236 -> 3707 -> 3652 MiBas the heap filled to 13,885 of 14,609 MiB — the growth still reaches the working set, and the shrink still yields to the heap;Graphics.cppcover the roomy, busy, no-room, raised-floor and no-reported-budget paths;agc_driver_graphics_testspasses.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-15T17:51:52Z.
Measured this PR on two 8 GB cards with Minecraft Dungeons II (PPSA16064 01.100.100, title screen, Windows 11, NVIDIA 617.42). On both the storage budget never grows, and the eviction loop it targets is the whole frame-rate gap there. Two root causes, a proposed change, and numbers.
main636b1b93cmain+ this PR (+ #6197)main+APS5_TEXTURE_CACHE_MIB=3072(reference)Why it does not grow on 8 GB.
storageBudgetCapholds backSampledTextureBudget(...) - sampled.SampledTextureBudgetalready takesTextureCacheBudget(2 GiB on these cards, the storage cache's share) and budget / 8 out, and then floors at 2048 MiB; at this title the sampled cache holds ~33 MiB, so ~2 GiB is held back for a cache that is nearly empty, on top of the 2 GiB reserve. With ~2.3 GiB used outside both caches the cap comes out at ~700 MiB, below the 1780 MiB floor, socurrent < capnever holds. The two caches each reserve room for the other; on 16 GB there is space for both, on 8 GB there is not.Why the 2 GiB reserve shrinks it back. With the headroom fixed, the budget grew 1780 -> 2003 -> 2253 -> 2535 MiB and then shrank back to 1780 once heap usage passed ~5.1 GiB: a fixed 2 GiB is 29 % of a 7.1 GiB budget.
Proposed revision (branch
AlxcBTW/AnyPS5:lab/md2-evict-cap3, on top of this PR; an independent review of the simplermin(remaining, sampled)version found that it removes the cap's forward-looking bound, and this revision answers that):SampledCacheHeadroom(sampledBudget, sampled, peak) = min(sampledBudget, peak + max(peak / 8, 64 MiB)) - sampled(0 when the sampled cache is at or over it). The peak is the maximum ofSampledTextureMemory()and the previous peak minus 1/64, taken once per budget read (once per second), so a sampled cache that was large before keeps its claim immediately, and a one-off spike stops reserving after a minute or so.StorageBudgetCapandNextStorageBudgetis max(1 GiB, budget / 8). On a 15229 MiB budget that is 1903 MiB (was 2048); on a 7123 MiB budget 1024 MiB (was 2048).NextStorageBudget, after the pressure check). Without it a grown budget stays above the cap until usage itself crosses the shrink line, so the cap only limits growth, not what was already taken.Tests (
tests/Graphics.cpp): the twoStorageBudgetCapexpectations that pinned the 2 GiB reserve are corrected (the first now meets half the heap, so a 2x heap case pins the pool arithmetic again), and 12 cases are added: the 8 GiB card (full headroom held back stays at the floor; small headroom leaves 3515 MiB), growth and shrink lines under the 1 GiB reserve,SampledCacheHeadroom(small cache, below its peak, capped at the sampled budget, over budget), and the step-down to a fallen cap. All 24 budget assertions pass against these function bodies; the fullagc_driver_graphics_teststarget was not built here.Trade-off to weigh. In the review case above (16 GB, another process holding 3 GiB, reported budget ~11.5 GiB) the reserve goes from 2048 to ~1470 MiB, and a sampled cache that has not been large yet holds back less than before. The step-down in 3 and the peak in 1 make the cap respond before usage crosses the shrink line, but I could not run that setup. If you prefer to keep 2 GiB there, a reserve floor that scales with the budget (1 GiB at 8 GB, 2 GiB from about 12 GB) keeps the 8 GB case working.
Patch against this PR's head
8bb130068(applies cleanly; code, tests and the debt entry):diff
Not checked: Linux, 12 and 16 GB cards with this revision, gameplay (title screen only), the full test target.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T18:56:25Z.
Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with
8bb130068merged into mainb7cedd900:agc_driver_graphics, including the newNextStorageBudgetandStorageBudgetCapcases, and the other 7 tests built fromGraphics.cpp, pass.ShaderResources.cpp/.hpp, the test file doesn't link (undefined symbol: AgcDriver::Graphics::NextStorageBudget), since both functions are new in this PR.This is the submitted head, not AlxcBTW's 8 GB revision. No title run here.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T19:06:27Z.
@AlxcBTW I ran your revision in the case from my earlier review, where another process holds 3 GiB of device memory.
Setup: Linux, Ubuntu 24.04, RTX 5080 16 GiB, NVIDIA 595.99.02, PPSA15304. Base: main at
92e50418fplus my open #6174, #6185 and #6186 and two local changes. On top of that: this PR at8bb130068plus the four commits oflab/md2-evict-cap3(b8463e6e5, aaa99479a, 77ade4ef5, 56c26e54e), no conflicts. A CUDA allocation held 3072 MiB, and the desktop used 6.6 GiB of device memory before the start. The reported budget was 8.8 to 9.1 GiB. The fixed-camera window was 300 s after loading the save, with a warm shader cache. One run.With the revision the budget grew 2291 -> 2577 -> 2899 -> 3262 -> 3669 -> 4128 -> 4644 MiB. After that the shrink rule took over, and the budget moved between 3359 and 4000 MiB for the rest of the run, 15 changes in total. The highest heap usage was 7889 of 8945 MiB. There was no out-of-memory recovery, no device buffer was placed in host memory, and the image was correct.
The base row shows that this scene sits on a cliff. The same build ran at 22 presents per 10 s with a 3228 MiB storage budget and at 7 with 3180 MiB, after the desktop took 370 MiB more device memory. So the growth matters here even without another process.
Not checked: more than one run, other scenes, and the variant that keeps the 2 GiB reserve.
Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-15T21:42:02Z.
Correction to my previous comment: the base row (7 presents per 10 s) does not show a budget cliff. In a later run the same scene ran at 8 presents per 10 s with a storage budget of 5.9 to 6.8 GB, far above its working set. The slow runs have a different cause that I am still looking into: about 1 s of GPU idle time per frame, with the compute queue waiting in
WAIT_REG_MEM. The evictions in that run came with the slow state and did not cause it.The measurement of the revision itself stands: 24 presents per 10 s with the 3 GiB holder, with no heap at its budget, no out-of-memory recovery and no crash. It does not show how much of the gain comes from the budget growth.
Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T15:40:18Z.
Data from a third 8 GB card on where the budget can go: RTX 4060 8 GB (NVIDIA 617.42), 16 GB RAM, Windows 10, Minecraft Dungeons II (PPSA16064 01.100.100), first world load and a 120 s walk,
main5d9dcc42d+ #6308 + #5372 + #6490 + #4472 + #6631 + #6632 (not this PR). Heap 0 reports a 7189 MiB budget, somain's automatic storage image budget is 1797 MiB. Rows interleaved:APS5_TEXTURE_CACHE_MIB=3072)So on this card a storage budget ~1.3 GB above
main's is enough to push the heap past its budget: storage textures are then created in host memory and sampled over PCIe (GPU busy ~165 ms per frame instead of ~90 in earlier rows). On a 16 GB machine it also fills heap 1 (2 of 3 first loads aborted with a host-typeVK_ERROR_OUT_OF_DEVICE_MEMORY, details on #6553). That fits what AlxcBTW found on the 5070 Laptop (a growing budget re-creating a 256 MiB 3D storage texture in host memory, then a TDR, which #4472 prevented). Whatever the growth rule ends up being, a cap that stays under the heap's remaining budget, not only under the total, would keep it out of that state on 8 GB cards.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-18T03:07:39Z.
Data from an 8 GB card, where this PR matters most but doesn't trigger yet. RTX 4060 8 GB (NVIDIA 617.42), Windows 10, Minecraft Dungeons II (PPSA16064 01.100.100) title screen, 150 s rows, arms alternating,
mainb39d90bf1. I rebased this PR locally onto it; the only conflict wasmain's 4-argumentStorageTextureBudget, which I kept as the floor.main, automatic (1797 MiB)APS5_TEXTURE_CACHE_MIB=2560APS5_TEXTURE_CACHE_MIB=3072The working set needs about 2.5 GB, and the heap has room: it reports 4.0–4.4 GB used of a 7189 MiB budget. With this PR the budget never moves (no
[textures] storage cache budgetline in the run), although the cache evicts ~165 entries a second. The cap stops it:storageBudgetCapholds back the sampled cache's remaining headroom, and onmainSampledTextureBudgetnever goes below 2048 MiB. With 36 MiB of sampled textures, about 2 GB stays reserved for textures the title doesn't have, so the cap lands at or below the 1797 MiB floor. The same 2 GiB minimum is inmain'sStorageTextureBudget(std::max(2048 MiB, sampledBytes)inreserved). Holding back what the sampled cache actually uses, plus a margin, instead of its 2 GiB minimum would let this grow to ~2.5 GB here, and that's worth 2.3x on this card.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-18T17:08:23Z.
Review: CHANGES_REQUESTED
Thanks for the measurements. Findings on
8bb130068:main:StorageTextureBudgetnow takes(memory, reported, sampledBytes, storageBytes)and already subtracts the usage outside both caches plus a 2 GiB-or-sampled reserve andbudget / 8. Please rebase and reconcile: the floor passed toNextStorageBudget/StorageBudgetCapshould be that function's result, andStorageBudgetCap'soutside + reserveterm should reuse its logic instead of repeating it (ShaderResources.cpp:1027,:1030-1033).mainon an RTX 4060 8 GB (Minecraft Dungeons II): no[textures] storage cache budgetline in 150 s while evicting ~165 entries/s, 3.2 FPS vs 6.7-7.3 withAPS5_TEXTURE_CACHE_MIB=2560. Cause per that comment:sampledRemainingis computed fromSampledTextureBudget, which never goes below 2048 MiB, so ~2 GB stays held back for a sampled cache holding 36 MiB and the cap lands at or below the floor. Hold back what the sampled cache actually uses plus a margin rather than its minimum budget, and add a test row for a small sampled cache on a ~7 GiB reported budget.ShaderResources.cpp:1020-1026and:1049-1052add//comments. The rationale already lives in the debt entry; drop the comments.agc_driver_graphicsafter the rebase.Imported from boykopovar/AnyPS5. Originally posted by Rajkamalcode on 2026-10-20T14:31:09Z.
SWAG (PPSA22102 01.000.000), 8 GB RTX 3070: the revision reaches the working set, then the pressure shrink collapses it
Build. Ported
8bb1300680plus the 8 GB revision from https://github.com/boykopovar/AnyPS5/pull/6194#issuecomment-6198634040 onto old baseb6dd2f9e3(currentmaincannot be run on this host while the game'slibkernel.prx/libc.prxdo not match it).libsandagc_driver_graphics_testsbuilt;ctest -R '^agc_driver_graphics$'passed 1/1 in 8.28 s. PR prxlogs/game-libSceAgcDriver-pr6194rev.prx, SHA-256FB534996...C88FD9.Host. Ryzen 5 5600X, 16 GB RAM, RTX 3070 8 GB (heap 0 8018 MiB; driver 32.0.16.1088), Windows 11 22635. Guest 3840x2160 presented at 1060x596. Stock
gameusersettings.ini0156186E(VSync on); warm caches.Run. 360 s, same pad schedule (Cross at 15/30/45/60 s),
APS5_PROFILE_DRAW=1, no trace/worker sampler. The save folder has no checkpoint, so every launch starts the same tutorial; game speed changes how far the pads reach, so scene progression is not matched. Four interleaved runs (baseline, PR, baseline, PR), no fatal or OOM.Measured
5AB0413B5AB0413B1812 -> 2039 -> 2293 -> 2580 -> 2903 -> 3266 MiB, then oscillated roughly 1.7-2.9 GB.1812 -> ... -> 3266 -> 2857 -> 2827 -> 2473 -> 2164 -> 1893 -> ... -> 1058 -> ... -> 564 MiB(112 change lines).[gpu]shows the sampled budget dropping from 4070 to its 2048 MiB floor; the dynamic storage floor itself falls below the original 1812 MiB.Fixed-budget diagnostic (not a PR A/B). With the baseline prx and the supported
APS5_TEXTURE_CACHE_MIB=2560(which forces both caches to 2560 MiB; the sampled cache stayed at ~504 MiB in 600 entries, so this is a storage-budget effect), two 360 s runs:No fatal/OOM. The fixed runs progressed much farther than baseline (320k/257k builds vs 120k), so the later scene is heavier; this is a diagnostic for the working-set size, not a PR validation.
AI-assisted analysis (separate from the measured data)
NextStorageBudgetshrinks immediately whenusage + 1 GiB > reportedBudget, while growth needs 16 evictions. That asymmetry, plus the dynamic floor, creates a limit cycle: the cache grows to 3266, pressure shrinks it, evictions trigger growth, pressure shrinks it again. run32 stayed in the upper half of the cycle and run34 fell to 564 MiB; that explains the large run-to-run spread.I can attach the five run logs and the port diff if useful.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T12:48:59Z.
Linux / AMD data point for the same title, where the automatic storage budget is lower than on the 8 GB NVIDIA cards above.
Setup: Minecraft Dungeons II (PPSA16064) 01.000.000 (not 01.100.100), on Linux 7.2.9 with a Radeon RX 6650 XT 8 GB (RADV Mesa 26.2.4). Heap 1 reports a 5172 MiB budget, so
main's automatic storage image budget is 1291 MiB. The scene is the first Accessibility menu, with seeded caches and saves. On Linux this scene is dominated by refused host imports onmain(about 2.6 s per frame), so these runs are on #809171d29197ff(its base7ab4b2e561+ its one commit). Trace90:30,APS5_TRACE_EVENTS=4194304,dropped: no, plusAPS5_PROFILE_GPU. Single diagnostic runs, not this PR.APS5_TEXTURE_CACHE_MIB=3500Draws themselves take about 14-16 ms of GPU time per present in both rows; dcc-clear stays at about 2.5 ms (863 MiB). Logging every storage upload and write-back with the automatic budget showed whole 4096x4096 (64 MiB) and 4352x4352 images in a strict write-back then re-create and upload cycle on every frame. That is the cache-eviction churn this PR targets.
Caveats:
APS5_TEXTURE_CACHE_MIBalso forces the sampled cache's budget.I can run this PR's latest revision, or @AlxcBTW's proposed one, on this RADV setup (composed with #8091, disclosed) if a head is named.
Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-21T23:36:31Z.
Rebased branch and boundary tests,
ea6d165422, maina6dcea9279; authorship preserved.Adds immediate clamping above a fallen cap: current 2048/floor 512/cap 1200 MiB now yields 1200, instead of 2048 without pressure or 1792 under pressure. Exact-body native C++ controls: 4 failures before, 17/17 after. Baseline/candidate pass the same 10 graphics/cache CTests (Windows 11, RTX 3050 Laptop/617.42, GCC 15.2.0-r7), no skips, missing validation layer or VUID errors.
Small-sampled-cache growth and pressure oscillation remain unresolved. No new thresholds, title or speed claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T09:08:31Z.
@Thunderhawkk data from a second title, vendor and OS, in case it is useful for this PR. In short: the storage image cache thrashes here, a larger storage budget measurably helps, and this PR's reserve condition would not let the budget grow on this card.
Setup
main(17f5335562era) plus the PRs the title needs.main's budget rule, not this PR's.The thrash (
APS5_PROFILE_DRAW, per 10 s, late in the run)APS5_PROFILE_GPU).sampled texture cache budget 2048 MiB: device-local heap 1 has a VK_EXT_memory_budget budget of 5766 MiB and uses 5101 MiB ... storage image cache budget 512 MiB (was 717 MiB). The storage cache sits at its 512 MiB floor while the sampled cache holds about 1.9 GiB with 0 evictions.Matched comparison
APS5_TRACE_FRAMES=560:100, the same build. The only difference is a private override that sets the storage budget alone to 2048 MiB.Relevance to this PR: the growth step requires the step plus a reserve (2 GiB, or an eighth of the reported budget) to stay within the reported budget. Here the headroom is about 665 MiB, so the budget would never grow, although growing it is what helps. Perhaps the reserve should be smaller when the sampled cache is not evicting, or a storage cache under heavy eviction should be allowed some overcommit. I can rerun this pair on a rebased version of this PR if that helps.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T14:42:50Z.
A follow-up to my earlier comment, with a correction.
I cherry-picked the source commits of @Queuse's rebase of this PR (
add7f9a8eb,c3c8b135ed,a5397d276d,9c12b3ca99,5bffb6b637) onto my current Echoes of the End (PPSA25636) integration tree. I then ran a matched pair: same seed,APS5_TRACE_FRAMES=560:100,APS5_PROFILE_DRAW=1, RX 6650 XT / RADV.Correction: in my earlier comment the storage budget sat at its 512 MiB floor. That was on an older integration tree. With #9551 and #9652 on the tree, which remove large host-visible copies and repeated heap mirror rebuilds, the automatic budget now stays around 1.4-1.65 GiB on the same card. The earlier gain from forcing 2 GiB therefore mostly reflected starvation that those fixes have since reduced. So on Echoes today I can no longer show this PR (or a larger storage budget) helping. I'm reporting that so the earlier comment does not overstate the case.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T01:39:52Z.
Review: CHANGES_REQUESTED
Checked
8bb130068again againstmainand the measurements in the thread. Still needs changes, and some of them are design decisions rather than mechanical fixes:main:StorageTextureBudgetnow takes(memory, reported, sampledBytes, storageBytes)and already subtracts the usage outside both caches plus the reserve. The floor passed toNextStorageBudget/StorageBudgetCapshould be that function's result, andStorageBudgetCap(ShaderResources.cpp:1027-1033) should reuse its logic instead of repeatingoutside + reserve.sampledRemainingcomes fromSampledTextureBudget, which never goes below 2048 MiB, so ~2 GiB stays held back for a sampled cache that holds tens of MiB (RTX 4060 in this thread; RX 6650 XT, where the 2 GiB/eighth reserve also blocks the growth step). Hold back what the sampled cache actually uses plus a margin, and add a test row for a small sampled cache on a ~7 GiB reported budget.ShaderResources.cpp:1020-1026and:1049-1052. The rationale already lives in the debt entry.agc_driver_graphicsafter the rebase. @Queuse's rebase adds clamping to a fallen cap with boundary tests that are worth taking.ShaderResources.cpp.Feel free to push a revised head; a rebased branch with the points above is welcome.
Pull request closed