style(player):future optimisation comments

This commit is contained in:
Alex Kaminskii 2022-07-27 18:48:02 +02:00
parent 2bcc1f3f1e
commit a1d8848e01

View file

@ -302,6 +302,9 @@ export default class DOMManager extends ListWalker<Message> {
}
moveReady(t: number): Promise<void> {
// MBTODO (back jump optimisation):
// - store intemediate virtual dom state
// - cancel previous moveReady tasks (is it possible?) if new timestamp is less
this.moveApply(t, this.applyMessage) // This function autoresets pointer if necessary (better name?)
this.vRoots.forEach(rt => rt.applyChanges()) // MBTODO (optimisation): affected set