Tyxml_lwd scheduler: WIP#27
Conversation
|
The entry point of an Lwd application now looks like: https://github.com/let-def/lwd/pull/27/files#diff-97558246d35a0937fdc7830ed9e4149d2cdc0790fcb803c58596c1289e5f763b |
|
@let-def any news on this ? |
|
There are two parts to the problem, that partially overlaps:
Since this PR, I worked on a more generic / elegant solution for the second problem : the I am not totally satisfied with The rest of the PR for Dom integration is still relevant though, I will clean that up soon, and also provide corresponding functions for Brr. |
This PR introduces a scheduler for updating the DOM, such that it is no longer necessary to manually use Lwd.root and to call requestAnimationFrame.
The important part is this new module in
Tyxml_lwd.Lwdom:The limit strategies are intended to keep the application usable in degenerate conditions.
They play on two parameters: number of update cycles and time spent updating.
These limits should not be reached in a well-designed application, they are here to offer a "best-effort"
fallback and help debugging performance issues without freezing the page.
TODO: