Using bluegui I have found that if I use sleep or nice wait commands it introduces a small but annoying `lag` to the gadgets, especially when clicking on buttons, but that's just bluegui I think.
Below sets current (your) process priority but sync sleep 1 is definitely easier!
#constant NORMAL_PRIORITY 32
#constant BELOW_NORMAL_PRIORITY 16384
#constant ABOVE_NORMAL_PRIORITY 32768
#constant IDLE_PRIORITY 64
#constant HIGH_PRIORITY 128
#constant REALTIME_PRIORITY 256
load dll "kernel32.dll",1
pid=call dll(1,"GetCurrentProcessId")
prochandle=call dll(1,"OpenProcess",512,0,pid)
if prochandle<>0
result=call dll(1,"SetPriorityClass",prochandle,BELOW_NORMAL_PRIORITY)
print result
call dll 1,"CloseHandle",prochandle
endif
wait key