Page 1 of 1

[Fix 11.7.1.1] Redraw of cue window stalling hotkey cues

Posted: Mon Jul 16, 2018 10:09 am
by Cheetah
Hi!

I'm not sure at which version this began happening, but I don't remember having this problem with 11.6.

It happens at least with 1.7.0 and 1.7.1 - I can't cross check with older versions right now, I'm afraid.

When repeatedly triggering hotkey cues (like say, gunshots), the sound plays with a delay of up to about 0.5 - 1 seconds, and key presses can even pile up in the keyboard buffer. However, this only happens when there are still manual cues queued up in the cue list, and the cue panel frame is populated with the upcoming cues. If I place the play cursor at the END of the cue list, so the cue panel frame is empty and there's nothing left to redraw, hotkey cues suddenly fire more or less latency free. It seems that the redraw of the cue panels is causing some major congestion - one processor core goes to 100% load when it happens.

It doesn't seem to depend on the actual number of cues in the project, only on the fact that there ARE cues in the cue panel frame. It happens even when no other cues are playing. I don't have to trigger hotkey cues particularly fast to make it happen. In fact, pauses between keypresses that are closest to the window refresh delay seem to be worst.

I can pretty much rule out a resource or a hardware problem. This machine is a well maintained Core i7-3770, 16 Gig of RAM, a presonous firestudio interface. Windows 10 Pro.

(On a side note: Rendering of the UI is generally very slow, and there seem to be a lot of unnecessary full redraws of the main window - and each readraw takes about 1-2 seconds during which the UI becomes completely unresponsive. For example, when entering a hotkey label in Cue Properties, every single keypress in the text box triggers a full redraw. That means, typing in a 10-character-label takes about 10 seconds to finish. Opening the Editor Window takes at least 5, but sometimes up to 10 seconds and I have not yet found a corellation for that yet. Same goes for the options window. Switching from Cues to Production Properties in the Editor can lock up up to 20 seconds - but only once. These might be separate issues or related - I have no idea :) )

I am running a show that requires precise firing of cues via hotkeys and cue control devices (rs232) ... and it doesn't have to be ultra-snappy, but unfortunately hangups of half a second and sound beginnining to cue up is pretty much a showstopper.

If there's anything I can do to help solve this problem, please let me know.

Re: Redraw of cue window stalling hotkey cues

Posted: Mon Jul 16, 2018 10:23 am
by Cheetah
Here's the log file of a test session.

I loaded my project, placed the play cursor on the first cue, and then went to town with the hotkeys - experiencing the mentioned delays. Then I move the playcursor to the last cue, and do the same again - no delays. Then I open the editor, and it takes about 20 seconds to load (while windows loses all hope this process will ever return, graying out the window), before it finally opens. Then I close all windows and exit the program. I hope this helps.

https://drive.google.com/open?id=1xMaKo ... cH0qK8V_N2

Re: Redraw of cue window stalling hotkey cues

Posted: Wed Jul 18, 2018 7:25 am
by Cheetah
Okay, I've tried it with 1.6.2 (next older version I still had), and I was wrong. In 1.6 it's even worse, because there is no delay before the cue panel full redraw, so it's redrawn EVERY time a hotkey cue is triggered.

Here's a suggestion for a workaround: Would it be possible to suppress the re-draw of the cue panel list when cues are played that have the "hide in cue panel" flag set, or are hidden because of "hide hotkey cues" being enabled in the options panel?

(My blind guess as a dev is it's being redrawn because the play cursor position might changed with any cue triggered, and it deletes and re-populates the list starting with the updated play position?)

Re: Redraw of cue window stalling hotkey cues

Posted: Wed Jul 18, 2018 5:56 pm
by Mike Daniell
I'll look into the issues you've raised and your suggestions. I'm puzzled by the delay in opening the editor - I may need to add some extra tracing to work out what's causing the delay.

Regarding the hotkeys, I note that the files you are using are all quite small, so could you upload them to Google drive or similar? You can email me the link if you wish so the files are not public. The files I want are those for hotkeys A, B, C and D, as these were the hotkeys used frequently in your test.

Re: Redraw of cue window stalling hotkey cues

Posted: Thu Jul 19, 2018 6:25 am
by Cheetah
Sure thing!

I've taken a little video to demonstrate the problem:

https://drive.google.com/open?id=11Jlw1 ... Sfsa9CqVKj

And here are the four sound files for the keys A-D:

https://drive.google.com/open?id=1BNZ0p ... qw4v-k94b5

Pretty short, and nothing really special :)