[chocolate-doom] 05/13: Delay calls so we don't use the entire CPU
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:06:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.0.2
in repository chocolate-doom.
commit 730c726d7ea0a98c7ce960609627c6d4abd9a1cd
Author: Simon Howard <fraggle at gmail.com>
Date: Thu Sep 8 22:10:40 2005 +0000
Delay calls so we don't use the entire CPU
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 95
---
src/d_net.c | 9 +++++++--
src/i_system.c | 14 ++++++++++++--
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/d_net.c b/src/d_net.c
index 16eac4c..b70768f 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_net.c 71 2005-09-04 18:44:23Z fraggle $
+// $Id: d_net.c 95 2005-09-08 22:10:40Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.7 2005/09/08 22:10:40 fraggle
+// Delay calls so we don't use the entire CPU
+//
// Revision 1.6 2005/09/04 18:44:22 fraggle
// shut up compiler warnings
//
@@ -50,7 +53,7 @@
//-----------------------------------------------------------------------------
-static const char rcsid[] = "$Id: d_net.c 71 2005-09-04 18:44:23Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 95 2005-09-08 22:10:40Z fraggle $";
#include "m_menu.h"
@@ -755,6 +758,8 @@ void TryRunTics (void)
M_Ticker ();
return;
}
+
+ I_Sleep(1);
}
// run the count * ticdup dics
diff --git a/src/i_system.c b/src/i_system.c
index 93824e0..ea3b3b1 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_system.c 80 2005-09-06 22:39:43Z fraggle $
+// $Id: i_system.c 95 2005-09-08 22:10:40Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.9 2005/09/08 22:10:40 fraggle
+// Delay calls so we don't use the entire CPU
+//
// Revision 1.8 2005/09/06 22:39:43 fraggle
// Restore -nosound, -nosfx, -nomusic
//
@@ -52,7 +55,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_system.c 80 2005-09-06 22:39:43Z fraggle $";
+rcsid[] = "$Id: i_system.c 95 2005-09-08 22:10:40Z fraggle $";
#include <stdlib.h>
@@ -164,6 +167,13 @@ void I_WaitVBL(int count)
SDL_Delay((count * 1000) / 70);
}
+// Sleep for a specified number of ms
+
+void I_Sleep(int ms)
+{
+ SDL_Delay(ms);
+}
+
byte* I_AllocLow(int length)
{
byte* mem;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list