Commit Graph
820 Commits
Author SHA1 Message Date
Thomas Weber 2b81e53317 Change maximum framerate to 250 2021-04-07 14:27:20 -05:00
Thomas Weber 019e989e47 Merge branch 'develop' of https://github.com/llk/scratch-vm into develop 2021-04-05 17:53:26 -05:00
Thomas Weber 1618e5da07 Add GPL copyright headers to significant files 2021-03-31 12:55:20 -05:00
Thomas Weber 38cf4e44ea Reset cache when asset name is updated 2021-03-30 12:13:32 -05:00
Thomas Weber 816f42a637 Polyfill requestAnimationFrame for node environments 2021-03-26 20:02:20 -05:00
Thomas Weber 7228f5cdd0 effectLimits -> miscLimits 2021-03-26 19:15:04 -05:00
Thomas Weber 6a7822b429 Add a debug mode 2021-03-25 20:41:45 -05:00
Thomas Weber cb6a5bc1d0 Remove hasLimits/setLimits
Changes in GUI have made these obsolete
2021-03-20 22:47:04 -05:00
Thomas Weber 2c104c3b6f Allow controlling more limits with runtime options
New options: effectLimits, fencing
New APIs: Runtime.hasLimits, Runtime.setLimits (wrappers around runtimeOptions)
2021-03-20 19:30:21 -05:00
DD Liu e5560b067b Merge branch 'develop' into removev2SvgAdapter 2021-03-16 16:53:40 -04:00
Thomas Weber 74c23d007d Remove beforeStep and afterStep 2021-03-12 21:25:53 -06:00
DD Liu 627e62a339 Remove v2SvgAdapter 2021-03-04 15:32:14 -05:00
Thomas Weber 75eb096abd js: Store timer for control.wait on thread 2021-03-03 12:49:19 -06:00
Thomas Weber fce6f8792b Further tune interpolation heuristic
The interpolator is now generally more willing to interpolate movement.
2021-02-28 19:34:14 -06:00
Thomas Weber 89d0e25955 Slightly optimize startHats 2021-02-27 23:58:10 -06:00
Thomas Weber 7182b7218f Clean up interpolation formatting 2021-02-27 23:11:49 -06:00
Thomas Weber 200e1596fd Interpolation. 2021-02-20 15:41:45 -06:00
Thomas Weber 65b71c615c Fix green flag improperly resetting project timer 2021-02-20 15:15:16 -06:00
Thomas Weber 2bf19b2004 Allow "Open Docs" button to be translated 2021-02-20 10:48:40 -06:00
Thomas Weber 1c79d335f2 Implement docsURI - VM part 2021-02-14 11:07:47 -06:00
Thomas Weber eb140a2493 Add Runtime.stageWidth, Runtime.stageHeight 2021-01-30 20:23:31 -06:00
Thomas Weber bffe350636 Experimental audio engine optimizations 2021-01-30 00:07:34 -06:00
Thomas Weber 5eec998fc2 Fix flyout block glowing 2021-01-25 16:11:09 -06:00
Thomas Weber 4f027f3341 Allow flyout blocks to be cached 2021-01-25 15:09:06 -06:00
Thomas Weber d49f266f09 Do not cache flyout blocks 2021-01-18 12:50:54 -06:00
Thomas Weber e16f9e5c8f Do not emit project change when creating the default project
Wow this is a horrible hack
2021-01-03 01:14:07 -06:00
Thomas Weber e4c61f4180 Add beforeStep and afterStep hooks 2021-01-03 00:54:35 -06:00
Thomas Weber 146d34e46e compiler/execute -> compiler/jsexecute 2020-12-05 20:33:56 -06:00
Thomas Weber 9078359afd Do not allow framerate to go over 1000
Values beyond this point
a) are unnecessary
b) don't actually work in any modern browser
c) trick the sequencer into thinking it has essentially 0 WORK_TIME
2020-11-26 21:36:24 -06:00
Thomas Weber d0364ec060 Revert "WORK_TIME should always be at least 1 millisecond"
This reverts commit 723064e1c2.
2020-11-26 16:42:48 -06:00
Thomas Weber 723064e1c2 WORK_TIME should always be at least 1 millisecond 2020-11-26 16:35:27 -06:00
Thomas Weber dc52b58019 Implement thread glowing (#35) 2020-11-24 12:06:47 -06:00
Thomas Weber 3ec9f75bea Include target in COMPILE_ERROR 2020-11-18 16:24:43 -06:00
Thomas Weber ed162660f0 Add COMPILE_ERROR event 2020-11-18 16:22:28 -06:00
Thomas Weber d3e4e144d7 emit-fast -> tw-emit-fast 2020-11-17 13:45:16 -06:00
Thomas Weber ad817fff6b populateProcedureCache should not overwrite entries
Fixes https://scratch.mit.edu/projects/387608267/
2020-11-17 13:00:17 -06:00
Thomas Weber 09d705b82d Merge branch 'develop' of https://github.com/llk/scratch-vm into develop 2020-11-11 09:23:19 -06:00
Thomas Weber 9799d49cf8 Clarify what stop() does 2020-10-31 14:14:05 -05:00
Thomas Weber af63a68aab Explicitly emit MONITORS_UPDATE in Runtime.dispose 2020-10-31 14:12:46 -05:00
Thomas Weber a428ca93c5 Add Runtime/Virtualmachine.stop() 2020-10-31 13:29:18 -05:00
Thomas Weber 00b5b2cfce Fix some eslint errors 2020-10-28 19:46:37 -05:00
Thomas Weber 6ce2ecc05b astgen -> irgen
The term AST results in confusion with the actual scratch-vm AST
2020-10-26 11:20:35 -05:00
Thomas Weber eca4a4ab84 Add maxClones option 2020-10-24 17:40:46 -05:00
Thomas Weber a9b6a890eb Add setRuntimeOptions 2020-10-24 17:38:03 -05:00
Thomas Weber 7b2a7e15a7 Don't log the current time 2020-10-24 17:33:46 -05:00
Thomas Weber e6cbbd8ed2 Don't draw if document is hidden 2020-10-24 17:30:17 -05:00
Thomas Weber 6a8adacb8d Refactor compilation result caching
Making it less archaic

I mean, giving Object, null, and undefined each different meaning was a bit... questionable
2020-10-16 18:50:22 -05:00
DD Liu 04b6963788 Pass on event type from CDM 2020-10-15 19:56:24 -04:00
Thomas Weber a178960853 Add Blocks.populateProcedureCache 2020-10-14 10:46:36 -05:00
Thomas Weber 650eb92060 Precompile should not reset all caches 2020-10-14 10:29:26 -05:00