Saturday, 26 May 2018

Re: [Rpcemu] RPCEMU edge case use - CCl4

I don't think I can help with the window-manager or cpu_idle=1 issue (might be an IDE timing issue with the latter but that's just a guess).
With cpu_idle=0 AFAIK the emulator will consume 100% of one CPU core for the main thread.
You could try this source-code hack to reduce CPU usage (but it may cause the same problem as cpu_idle=1). I haven't tested it on Linux however.

In rpc-qt5.cpp between the lines 'elapsed_timer.start();' and '// Handle qt events and messages' replace the contents with:

    int sleep_countdown = 10 ; // Sleep 1ms every n times around the main loop
    int sleep_countdown_counter = sleep_countdown ;

    while (!quited) {
       
        // Time to sleep to reduce CPU usage?
        if ((sleep_countdown_counter--) == 0)
        {
            #if defined(Q_OS_WIN32)
            Sleep(1) ;
           

No comments:

Post a Comment