Menu

#249 Not a real true bug, SCHED_FIFO ?

other
closed
None
5
2015-11-06
2015-09-03
No

I have hacked the following code into theadvancemame-1-4.

struct sched_param sparam;

ifdef SCHED_FIFO

    sparam.sched_priority = sched_get_priority_max(SCHED_FIFO);
    sched_setscheduler(0, SCHED_FIFO, &sparam);

endif

Testing on the Raspberry Pi 2 board it seems to make quite a difference, I suspect this will improve performance on ARM.

I dont know enough about the mame codebase to make a clean patch so instead I just offer my 2c worth here.

Thanks,
Jon

Discussion

  • Andrea Mazzoleni

    Hi Jonathan,

    I've just added it at the 1.5 version in git.

    Ciao,
    Andrea

     
  • Andrea Mazzoleni

    • status: open --> closed-fixed
     
  • Andrea Mazzoleni

    • assigned_to: Andrea Mazzoleni
     
  • Andrea Mazzoleni

    • status: closed-fixed --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB