Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
PasteUpMorph method doOneCycle
Last updated at 1:30 pm UTC on 15 November 2017
The variable world contains a PasteUpMorph. The instance of the current Morphic project may be accessed with Project current world.

The PasteUpMorph method #doOneCycle

is the main loop of Morphic.

It calls

 worldState doOneCycleFor: theWorldPasteUpMorph

It



The main loop is set up in MorphicProject
MorphicProject spawnNewProcess
	uiProcess := [
		[world doOneCycle.  Processor yield ] repeat.
	] newProcess priority: Processor userSchedulingPriority.
	uiProcess resume




https://stackoverflow.com/questions/43921042/squeak-smalltalk-game-loop