lowcpu: reduce the cpu usage by the gameloop.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 15 Jun 2010 21:03:19 +0000 (22:03 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 15 Jun 2010 21:03:19 +0000 (22:03 +0100)
commit8391427d10e9f774316fc864d120fc02f08128ba
tree71ddd06484f53f9369b4c3710de1cd8ea21031d9
parente420538849c44c7555fd7f975b23a166671aa4d5
lowcpu: reduce the cpu usage by the gameloop.
This patch adds support for building using nmake and MSVC on windows and
also modifies the gameloop to drop the cpu usage significantly using a
timer and waiting rather than constantly polling the SDL loop.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Makefile.vc [new file with mode: 0644]
src/ag.c
src/ag.rc [new file with mode: 0644]
src/dlb.c
src/linked.c
src/sprite.c
src/sprite.h