Nafroman Posted August 14, 2017 Share Posted August 14, 2017 https://jsfiddle.net/y0tk7mk8/ - is my code so far I am wondering is there a way that would cause less lag when the mouse moves left, right, up, down, etc . Also is there a where that when the mouse goes out side of the canvas to keep on panning to show the whole video Quote Link to comment Share on other sites More sharing options...
xerver Posted August 14, 2017 Share Posted August 14, 2017 Can't profile it because the video doesn't load Quote Link to comment Share on other sites More sharing options...
Nafroman Posted August 14, 2017 Author Share Posted August 14, 2017 The .mp4 video is saved locally. I am developing this using Cloud9 IDE so it would work with this link https://preview.c9users.io/nafroman/bensvid/hello-world.html or ive attached the file in question to this post vid2.mp4 Quote Link to comment Share on other sites More sharing options...
xerver Posted August 16, 2017 Share Posted August 16, 2017 Looks like the texture upload is just slow, and looking at the source video I can see why. The video is HUGE! Best way to make this faster is to not be a video that you have to upload each frame of. Instead just make some sprites and pan across those. Quote Link to comment Share on other sites More sharing options...
Nafroman Posted August 16, 2017 Author Share Posted August 16, 2017 Thanks for the reply!! The plan for the video is to be interactive with the ability to zoom in and out and pan to each video or see it as a whole for my film project. If i was to make some sprites would they be in this case each individual video and have a camera that would move about the scene? Quote Link to comment Share on other sites More sharing options...
xerver Posted August 16, 2017 Share Posted August 16, 2017 I think you aren't understanding me. If you put a huge video into pixi's rendering pipeline, it will be slow. Just use normal browser video rendering instead. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.