Skip to content

[Lightfield Viewport] Rework the UI for the live view settings #72

@TheDuckCow

Description

@TheDuckCow

This is a feature request idea for another mode on how to update the viewport. As it stands right now, playing an animation in the viewport with updates to the looking glass yield about an 8fps playback, which is not that useful. It also makes any operations within blender quite slow. Conversely, purely manual refresh mode means I have to click a button whenever I want to update a preview. I would be nice if there was another mode in which the addon detects whether "changes are being made", and it waits to attempt a re-render on the looking glass window until after changes are no longer being made.

The most simple way this coudl be implemented would be with the bpy.data.handlers' depsgraph pre/post, which itself could then set off a timer handler. Presume the timer is triggered after 0.5s (maybe a setting in user preferences), the timer handler then checks a global/cached var to see if the depsgraph has been called/updated since the timer was first set. If it has, it'll skip re-rendering. But if there hasn't been a despgraph callback since, it'll do the re render. Having this more intelligent refresh would make it loads more convenient working with the the addon in a more practical fashion, as you no longer have to think about when to refresh (manual button refresh), nor deciding whether you want to turn on the live display at the cost of playback fps.

The low resolution viewer seems to have some similar capability, in that it auto renders a higher resolution after you stay on the same frame for a moment (which works wonderfully).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest an improvement of an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions