You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In argon-aframe, I had the render function set up this way for a while to try and make the app more responsive when the content being rendered was too much for the device:
argonRender: {
value: function (frame) {
if (!this.animationFrameID) {
var app = this.argonApp;
this.rAFviewport = app.view.getViewport();
this.rAFsubViews = app.view.getSubviews();
this.animationFrameID = requestAnimationFrame(this.rAFRenderFunc.bind(this));
}
},
writable: true
},
rAFRenderFunc: {
value: function () {
The idea was twofold:
it appeared, on some devices like iOS, that wrapping ensuring the rendering happened directly inside a rAF callback prevented extra DOM repair if the DOM changed (such as with the CSS renderer).
if the render callbacks happened faster than we could render, we'd ignore the extra ones (instead of them getting queued and just rendering later). Specifically, by skipping then, we hope to ensure we only render when we can render immediately (rather than slightly delayed). (reducing frame rate, possibly, but improving perceived latency). Otherwise, we could find ourselves in the situation where we are always rendering slightly behind.
I need to remove this, though, for cases where we use native WebVR for rendering, since we don't want to introduce a rAF call from within a webVR high-performance rAF call (it results in rendering only occurring at a very slow frame rate).
So it would be nice if this sort of thing might be integrated in the right place inside argon, for those cases where it matters.
The text was updated successfully, but these errors were encountered:
In argon-aframe, I had the render function set up this way for a while to try and make the app more responsive when the content being rendered was too much for the device:
The idea was twofold:
I need to remove this, though, for cases where we use native WebVR for rendering, since we don't want to introduce a rAF call from within a webVR high-performance rAF call (it results in rendering only occurring at a very slow frame rate).
So it would be nice if this sort of thing might be integrated in the right place inside argon, for those cases where it matters.
The text was updated successfully, but these errors were encountered: