pmaillot / X32-Behringer

This GIT repo (C language) holds applications and utilities for the Behringer X32 and M32 mixing consoles. Additional details, documentation, implementation examples and apps can be found in my website:
https://sites.google.com/site/patrickmaillot/x32
234 stars 41 forks source link

FIX: CPU usage was 100%, now it is 10% without a perceived performanc… #38

Closed schattenmann80 closed 8 months ago

schattenmann80 commented 8 months ago

…e difference

Added some small sleep time, when no command is read. I did not perceive any performance difference.

I did read that usleep does nothing while using mingw. ( I did not test it. With GCC and Linux it does work ) Therefor the fix is maybe only for Linux.

schattenmann80 commented 8 months ago

Timeout from select is not working for me. I did run it under Debian 12 on the Raspberrypi 5 and with WSL ( Windows subsystem for Linux ).

schattenmann80 commented 8 months ago

OK I add a linux ifdef