changeset 1113:d2d44bc55fa1 draft

changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.changeset 1105 fix.
author tkaito
date Tue, 18 Jan 2011 18:53:23 +0900
parents fa1f4a1c47bf
children ee481853d5dd
files Renderer/Engine/Makefile.def TaskManager/kernel/main.cc
diffstat 2 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/Makefile.def	Mon Jan 17 06:15:46 2011 +0900
+++ b/Renderer/Engine/Makefile.def	Tue Jan 18 18:53:23 2011 +0900
@@ -5,7 +5,7 @@
 ABIBIT = 64 
 ABI = -m$(ABIBIT)
 CC      = g++
-OPT	= -g  #-DSPE_CREATE_POLYGON_CHECK -DSPE_CREATE_POLYGON=1
+OPT	= -O9  #-DSPE_CREATE_POLYGON_CHECK -DSPE_CREATE_POLYGON=1
 CFLAGS  = -Wall $(ABI) $(OPT)  #  -DDEBUG
 
 INCLUDE = -I$(CERIUM)/include/TaskManager -I.
--- a/TaskManager/kernel/main.cc	Mon Jan 17 06:15:46 2011 +0900
+++ b/TaskManager/kernel/main.cc	Tue Jan 18 18:53:23 2011 +0900
@@ -36,8 +36,6 @@
     int machineNum = 1;
     int speIdle = 0;
 
-    TaskManager *manager = new TaskManager(machineNum);
-
     for (int i = 1; argv[i]; ++i) {
         if (strcmp(argv[i], "-cpu") == 0) {
             machineNum = atoi(argv[++i]);
@@ -49,8 +47,11 @@
 
     }
 
+    TaskManager *manager = new TaskManager(machineNum);
     manager->init(speIdle);
 
+    manager->set_TMend(defaultTMend);
+
     for (int i = 1; argv[i]; ++i) {
         if (strcmp(argv[i], "-help") == 0) {
 	  if (usr_help_str) {
@@ -61,8 +62,6 @@
         }
     }
 
-    manager->set_TMend(defaultTMend);
-
     if (profile)
 	manager->start_profile();
     if (TMmain(manager, argc, argv) < 0) {