Jump to content

InteractionManager.update() is coupled to render() loop?


inductible
 Share

Recommended Posts

Hullo, 

 

from my tentative investigation, it would appear that the InteractionManager's 'update' method (which I presume is where the magic of input event marshalling takes place) occurs within the scope of renderer.render() - certainly for the canvas renderer anyway.

 

What I'm trying to do is get my Pixi based system set up to smartly render *only when necessary*, i.e. when the view state is deemed 'dirty'. This is due some audio performance issues I believe are related to canvas redraw... But, in the greater scheme of things it would be cool to be able to have my cake (Pixi interactivity) and eat it (skip rendering, if I want to).

 

Before I start hacking this in at Pixi's source, I wondered (Matt!) is this something you've thought about? At a very quick glance I don't think it'd be difficult to move the interactionManager update out of the render loop, but it'd be a powerful improvement.

Link to comment
Share on other sites

I ended up tweaking Pixi to open up a new 'updateInteractionMangerOnly' func, then recreated my issue with rendering effectively suspended: conclusion - my audio skippage is not related to Pixi redraw. I think it may be limited to my audio system (a custom sprite based audio tag affair), but HTML 'Audio' tag is so screwed up the spout that that's no surprise. I know there's a ton of unspoken implementation specifics here, so I won't dwell on the issue - it'll be something to do with something elsewhere!

 

Thanks indeed for the notice about plans with interaction manager - that definitely sounds like something to look forward to... +1!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...