StevensDeptECE / GrailGUI

GrailGUI is a prototype of a replacement for web programming (HTTP, HTML, CSS, JavaScript) and GUI programming. It includes a client graphical API, a browser implemented in C++ and OpenGL, a protocol to transmit metadata and data in binary, a language (XDL) to describe the binary data, and local storage to retain data on the client should that be necessary. Encrypted communications (equivalent of TLS) have not yet been implemented.
GNU General Public License v3.0
7 stars 14 forks source link

Possible MPV/memory bug in tabbed-windows branch #58

Open ahuston-0 opened 2 years ago

ahuston-0 commented 2 years ago

After switching everything over to tabs in the tabbed-windows branch, testVideo and testAudio no longer produce any output. There are no obvious errors from Grail or MPV that are being emitted, but it is suspected to be a memory bug.

ahuston-0 commented 2 years ago

Turns out that it was an issue to do with the fact that we're relying on the frame-rate to determine the update time. We fixed it by setting the framerate to 0 (continuous updates and renders), but we need to determine an alternate method of playing audio without forcing redraws.

hydrodog commented 2 years ago

Not a memory issue. Audio and video require animation to be on in order to act. For video, that isn't bad. For audio, we need to create a background thread so video need not be animated in order to play sounds