How to prevent waveform stuttering when updating prompt widget?

Kwon 20 Reputation points
2023-08-08T18:10:00.6033333+00:00

trace.pngEvery 40ms I call gx_canvas_line_draw on a uint32_t data buffer and increment the eraser by 1 pixel. Any time I press a button on the screen, there is a slight stutter in the waveform. I initially thought some other high priority threads were causing the delay, but after suspending those threads the stuttering issue is still present.

Here are my current executing threads and their priorities:

Touch Thread - 6

Log Thread - 7

GUIX Thread -16

Buffer Thread - 17

Any insight or help is much appreciated

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
338 questions
{count} votes

Accepted answer
  1. Ting Zhu 485 Reputation points Microsoft Employee
    2023-08-18T06:42:52.4566667+00:00

    The system timer has the highest priority, it should not be blocked by the lower-priority GUIX system thread. My assumption is that an abundance of inputs being directed to the GUIX event queue might be causing it to reach its capacity, subsequently leading to the loss of certain timer events.

    I suggest reducing the influx of input events and observing if this adjustment restores the proper functionality of the timer.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.