[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Moss-devel] CVS: moss/3Dsia/client/3Dcf/src Makefile.am,1.4,1.5 World.c
From: |
Manfred Morgner <address@hidden> |
Subject: |
[Moss-devel] CVS: moss/3Dsia/client/3Dcf/src Makefile.am,1.4,1.5 World.cxx,1.5,1.6 main.cxx,1.4,1.5 |
Date: |
Sun, 10 Nov 2002 11:38:17 -0500 |
Update of /cvsroot/moss/moss/3Dsia/client/3Dcf/src
In directory subversions:/tmp/cvs-serv6760/src
Modified Files:
Makefile.am World.cxx main.cxx
Log Message:
Reduced the CPU load by reactivating usleep() in the Glut-Idle-Callback
Index: Makefile.am
===================================================================
RCS file: /cvsroot/moss/moss/3Dsia/client/3Dcf/src/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 10 Nov 2002 14:46:44 -0000 1.4
--- Makefile.am 10 Nov 2002 16:38:15 -0000 1.5
***************
*** 6,9 ****
3df_client_SOURCES = main.cxx World.cxx
3df_client_LDADD = $(lflags) $(glflags)
-
-
--- 6,7 ----
Index: World.cxx
===================================================================
RCS file: /cvsroot/moss/moss/3Dsia/client/3Dcf/src/World.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** World.cxx 10 Nov 2002 14:46:44 -0000 1.5
--- World.cxx 10 Nov 2002 16:38:15 -0000 1.6
***************
*** 101,105 ****
glDepthFunc(GL_LEQUAL);
glEnable(GL_DEPTH_TEST);
! // glEnable(GL_BLEND);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHTING);
--- 101,105 ----
glDepthFunc(GL_LEQUAL);
glEnable(GL_DEPTH_TEST);
! glEnable(GL_BLEND);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHTING);
Index: main.cxx
===================================================================
RCS file: /cvsroot/moss/moss/3Dsia/client/3Dcf/src/main.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** main.cxx 10 Nov 2002 14:46:44 -0000 1.4
--- main.cxx 10 Nov 2002 16:38:15 -0000 1.5
***************
*** 48,52 ****
void Idle()
{
! // usleep(100);
// if (g_poWorld == 0) return;
// g_poWorld->DrawGLScene();
--- 48,52 ----
void Idle()
{
! usleep(100);
// if (g_poWorld == 0) return;
// g_poWorld->DrawGLScene();
***************
*** 79,83 ****
// glutMouseFunc(MouseFunction);
! g_poWorld->InitGL(800, 600, false);
glutMainLoop();
--- 79,83 ----
// glutMouseFunc(MouseFunction);
! g_poWorld->InitGL(800, 600, true);
glutMainLoop();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Moss-devel] CVS: moss/3Dsia/client/3Dcf/src Makefile.am,1.4,1.5 World.cxx,1.5,1.6 main.cxx,1.4,1.5,
Manfred Morgner <address@hidden> <=