Skip to content
Snippets Groups Projects
  • Andy Nichols's avatar
    58f87534
    Reduce the update interval of Lua · 58f87534
    Andy Nichols authored and Andy Nichols's avatar Andy Nichols committed
    Here we really reduce down how many times we step the lua engine. This
    should further reduce the CPU usage esspecially during idle. Basically
    what is being down is that we only step the lua thread when there are
    new events, or we need a repaint, and for 2 seconds after any user
    interaction. We also wake up once per second to process background
    processes when nothing else is occuring.
    
    Further refinement may be necessary, but CPU usage should finally be
    reasonable.
    58f87534
    History
    Reduce the update interval of Lua
    Andy Nichols authored and Andy Nichols's avatar Andy Nichols committed
    Here we really reduce down how many times we step the lua engine. This
    should further reduce the CPU usage esspecially during idle. Basically
    what is being down is that we only step the lua thread when there are
    new events, or we need a repaint, and for 2 seconds after any user
    interaction. We also wake up once per second to process background
    processes when nothing else is occuring.
    
    Further refinement may be necessary, but CPU usage should finally be
    reasonable.