Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6384


Ignore:
Timestamp:
Dec 21, 2009, 12:30:02 PM (15 years ago)
Author:
rgrieder
Message:

Playing Orxonox on a specific core makes it faster on Windows.
The problem is in fact that the timer NEEDS to be queried on the same core in order to avoid offsets. But if the querying thread is on the wrong core, the thread has to be rescheduled and that takes time. Considering that this happens quite often (Windows tries to play it on both cores), the performance penalty is serious (9% in may case).
I imagine that this issue is even more serious on a quad core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/Core.cc

    r6243 r6384  
    7979    SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
    8080#ifdef ORXONOX_PLATFORM_WINDOWS
    81     SetCommandLineArgument(limitToCPU, 0).information("Limits the program to one cpu/core (1, 2, 3, etc.). 0 turns it off (default)");
     81    SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)");
    8282#endif
    8383
Note: See TracChangeset for help on using the changeset viewer.