Re: [AD] Allegro cpu usage in win XP |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> when you run an allegro program cpu usage is 100%
Simply because this program doesn't play nice with the scheduler. See the
docs about yield_timeslice(), rest() and d_yield_proc(). Note however that
Allegro programs can't really block in normal operation mode, even though
they are apparently doing nothing (for instance, waiting for an event in the
GUI).
---
Eric Botcazou
ebotcazou@xxxxxxxxxx