Planet scan should now take ~2 secs on all machines
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@473 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
0.2:
|
0.2:
|
||||||
|
- Planet scan should now take ~2secs on all computers -PhracturedBlue
|
||||||
- Updated earth image to look nicer (no vertical lines) -PhracturedBlue
|
- Updated earth image to look nicer (no vertical lines) -PhracturedBlue
|
||||||
- Clock semaphore is now created with a value of 0 -PhracturedBlue
|
- Clock semaphore is now created with a value of 0 -PhracturedBlue
|
||||||
- Rewrote Semaphore debugging code to be more useful - PhracturedBlue
|
- Rewrote Semaphore debugging code to be more useful - PhracturedBlue
|
||||||
|
|||||||
@@ -693,7 +693,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
pMS)
|
pMS)
|
||||||
{
|
{
|
||||||
//STAMP s;
|
//STAMP s;
|
||||||
|
DWORD TimeIn, WaitTime;
|
||||||
if (GLOBAL (CurrentActivity) & CHECK_ABORT)
|
if (GLOBAL (CurrentActivity) & CHECK_ABORT)
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
|
||||||
@@ -846,6 +846,8 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
|
|
||||||
PressState = AnyButtonPress (TRUE);
|
PressState = AnyButtonPress (TRUE);
|
||||||
|
WaitTime = (ONE_SECOND << 1) / MAP_HEIGHT;
|
||||||
|
TimeIn = GetTimeCounter ();
|
||||||
for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++)
|
for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++)
|
||||||
{
|
{
|
||||||
ButtonState = AnyButtonPress (TRUE);
|
ButtonState = AnyButtonPress (TRUE);
|
||||||
@@ -866,7 +868,8 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
|
|||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
// FlushGraphics ();
|
// FlushGraphics ();
|
||||||
SleepThread (2);
|
SleepThreadUntil (TimeIn + WaitTime);
|
||||||
|
TimeIn = GetTimeCounter ();
|
||||||
}
|
}
|
||||||
pSolarSysState->Tint_rgb = 0;
|
pSolarSysState->Tint_rgb = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user