Commit b0df14fe authored by Stewart Brodie's avatar Stewart Brodie
Browse files

YSync event enabling now done on the same basis as vector claiming.

Detail:
  TaskWindow used to enable VSync events for each new task that was
    started.  However, it failed to disable the VSync events again
    when the task exited unless the task was the last one running.
    This meant that VSyncs would be going off for no reason at all
    slowing the machine down if you had ever started a taskwindow.
    Events are now only ever enabled when the first task is created,
    and disabled when the last task is killed.
Admin:
  Tested in desktop build.

Version 0.60. Tagged as 'TaskWindow-0_60'
parent 6c515dd5
......@@ -6,9 +6,13 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "0.59"
Module_Version SETA 59
GBLS Module_ApplicationDate2
GBLS Module_ApplicationDate4
Module_MajorVersion SETS "0.60"
Module_Version SETA 60
Module_MinorVersion SETS ""
Module_Date SETS "02 Jun 2000"
Module_FullVersion SETS "0.59"
Module_Date SETS "28 Jul 2000"
Module_ApplicationDate2 SETS "28-Jul-00"
Module_ApplicationDate4 SETS "28-Jul-2000"
Module_FullVersion SETS "0.60"
END
/* (0.59)
/* (0.60)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.59
#define Module_MajorVersion_CMHG 0.60
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 02 Jun 2000
#define Module_Date_CMHG 28 Jul 2000
#define Module_MajorVersion "0.59"
#define Module_Version 59
#define Module_MajorVersion "0.60"
#define Module_Version 60
#define Module_MinorVersion ""
#define Module_Date "02 Jun 2000"
#define Module_Date "28 Jul 2000"
#define Module_FullVersion "0.59"
#define Module_ApplicationDate2 "28-Jul-00"
#define Module_ApplicationDate4 "28-Jul-2000"
#define Module_FullVersion "0.60"
......@@ -1760,9 +1760,11 @@ inittask ROUT
STRB r1, TaskEscape ; Remember escape state of caller
CheckPointers
[ Preempt
MOV r0, #EventEnable
MOV r1, #Event_VSync
SWI OS_Byte ; Enable VSync event
LDR r0, NextBlock
TEQ r0, #0
MOVEQ r0, #EventEnable
MOVEQ r1, #Event_VSync
SWIEQ OS_Byte ; Enable VSync event
]
;
; If -display was specified, obtain a parent task before proceeding
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment