A demonstration of everything that works* now, including the main menu, opening the file, showing the video, changing the stream metadata and ending the stream.
The Frame Rate
Adjusting for framerate uses delta time between the start and end of frame, and if it’s smaller than the allocated time for one frame, it waits. Of course I couldn’t just do Thread.Sleep() because if someone sets the stream to 1fp4s then you’d have to wait the full 4 seconds before being to exit, so it just continues the loop and on each next iteration checks if the time has passed. Janky? Maybe. works? well enough.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.