Skip to content

Lowering the strain of the render loop when it's not being used #251

@Ctrlmonster

Description

@Ctrlmonster

For low end devices it can be important to enable render on demand for the Triplex canvas. Especially if the user has Triplex and the final App open at the same time, this puts a lot of pressure on the device.

A simple way to enable render on demand is to add a timeout duration for user interaction, e.g. on every user interaction (mousemove etc) reset the timer (i.e. 3 seconds) and invalidate the canvas until the timer has run out.

This should likely be a config setting though, 100% reliable render on demand is hard to achieve. For example, you might not know whether the user has an animation running that they want to inspect in the editor. Here it's probably best to give the user direct control over whether demand rendering should be enabled and what the timeout value should be.

Metadata

Metadata

Assignees

Labels

Contribution readyThis issue is a perfect candidate for external contribution.New featureNew feature or requestRenderer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions