()
| 185 | #w() { |
| 186 | if (this.#n) return; |
| 187 | const animate = () => { |
| 188 | this.#l = requestAnimationFrame(animate); |
| 189 | this.#c.update(); |
| 190 | this.#h.delta = this.#c.getDelta(); |
| 191 | this.#h.elapsed += this.#h.delta; |
| 192 | this.onBeforeRender(this.#h); |
| 193 | this.render(); |
| 194 | this.onAfterRender(this.#h); |
| 195 | }; |
| 196 | this.#n = true; |
| 197 | this.#c.reset(); |
| 198 | animate(); |