Thomas Weber
5bc62a4fa3
Disable quirks mode in iframe extension worker
2022-03-31 15:05:11 -05:00
Thomas Weber
c373c50ed0
Remove VirtualMachine.isTurboWarp
2022-03-29 15:26:58 -05:00
Thomas Weber
2bbb32d759
Do not round monitor offset when resizing stage
...
Reduces error after many resizes
2022-03-13 14:12:35 -05:00
Thomas Weber
25e91e735c
Preserve monitor position relative to center of stage when resizing stage
2022-03-12 20:36:37 -06:00
Thomas Weber
65304b59a6
Fix storing custom stage size when only one of width or height are stored
2022-03-01 22:22:22 -06:00
Thomas Weber
a2cacead7b
Round mouse coordinates to 3 decimals if misc. limits are disabled
...
All the extra precision is not necessary
2022-02-21 00:25:37 -06:00
Thomas Weber
d9002736b9
Merge branch 'develop' of https://github.com/llk/scratch-vm into develop
2022-02-20 20:48:58 -06:00
Thomas Weber
bf4a245efc
Always round mouse coordinates if they are very close to a whole number
...
The math often results in number like 120.00000000000001 that should always be rounded
2022-02-20 15:17:15 -06:00
Thomas Weber
96f6fa0022
Change default frame loop framerate to 30
2022-02-18 21:39:29 -06:00
Thomas Weber
24cd822aa4
Only store project settings that don't match the default
2022-02-18 21:36:50 -06:00
Thomas Weber
b677ae297a
Disable mouse coordinate rounding when misc limits are disabled
2022-02-18 21:01:39 -06:00
Christopher Willis-Ford
c59af735ef
support Scratch Link on ws://127.0.0.1:20111
2022-02-16 15:02:35 -08:00
Thomas Weber
04e5c2bd4a
Add VirtualMachine.getAddonBlock
2022-02-13 12:18:21 -06:00
Thomas Weber
bf1156dd3f
Add convertToPackagedRuntime stub
2022-02-12 15:59:43 -06:00
Thomas Weber
8b46c78595
Retry costume image reading if there's an error to mitigate random browser errors
2022-02-12 13:21:54 -06:00
Thomas Weber
e9cddbcd59
Do not allow compressed IDs to conflict with existing variable, list, or broadcast IDs
2022-01-29 13:02:22 -06:00
Thomas Weber
e2344cd467
Rename sb3 optimization to sb3 compression
2022-01-29 11:51:59 -06:00
Thomas Weber
b208444d93
Only resize renderer if stage size changed
2022-01-22 13:28:55 -06:00
Thomas Weber
bbdb4422f8
Fix negative clone counter when deleting non-clone target
2022-01-17 14:40:29 -06:00
Thomas Weber
f833277201
Add stage size to stored project options
2022-01-16 17:31:26 -06:00
Thomas Weber
208b0818c2
Add Runtime.setStageSize helper and STAGE_SIZE_CHANGED event
2022-01-16 17:31:25 -06:00
Thomas Weber
31a53d5e8c
Throw a less obscure error when loading bitmap costume base image fails
2022-01-16 14:37:14 -06:00
Thomas Weber
7abbcdbb10
Don't use createImageBitmap to load bitmap costumes
...
createImageBitmap uses a *lot* of memory. Image elements are much more efficient.
Related to https://github.com/TurboWarp/desktop/issues/289
2022-01-16 14:36:39 -06:00
Thomas Weber
be7cd303a5
Never store full VM version in project.json meta
2022-01-10 21:30:55 -06:00
Thomas Weber
4c5c2fe13a
Re-enable sb3 optimization, again
2022-01-09 17:43:49 -06:00
Thomas Weber
f7a6413c4c
Fix sb3 optimization breaking on type INPUT_DIFF_BLOCK_SHADOW (3) compressed inputs
2022-01-09 17:43:40 -06:00
Thomas Weber
257c69f1a8
js: do not visualReport if block returned undefined
2022-01-01 21:04:27 -06:00
Thomas Weber
55eeb8a6a9
Fix loadBitmap_ error when assetMatchesBase === false
2021-12-31 15:14:57 -06:00
Thomas Weber
a14f231961
Propagate fetchBitmapCanvas_
2021-12-31 15:10:08 -06:00
Thomas Weber
5907ab0103
Reset cloud variable limit to 10 for compatibility reasons
...
We don't want people to make a project in TW with 20 cloud variables and then have issues importing it to Scratch.
The packager, which has no limit, will convert any variable that starts with ☁ to a cloud variable, so this can be worked around.
2021-12-30 16:26:16 -06:00
Thomas Weber
02ff11e5d6
Don't convert bitmap costume to canvas if there is no text layer
...
This improves loading performance and reduces memory usage
It also unlocks more optimizations in the rendererer
2021-12-30 13:53:58 -06:00
Thomas Weber
921524eb67
js: Do not allow stage to change layer
2021-12-30 11:40:05 -06:00
Thomas Weber
8d28557437
setCostume micro optimization
2021-12-29 12:12:51 -06:00
Thomas Weber
77945b9a04
Convert inEditor compiler option to separate setInEditor
2021-12-29 11:32:27 -06:00
Thomas Weber
6aeccdbbc9
Limit x & y precision in compiler, same as interpreter
2021-12-28 18:20:59 -06:00
Thomas Weber
e1d0a70216
Add unused compiler option inEditor
2021-12-28 17:43:46 -06:00
Thomas Weber
d9783adc8e
js: optimize list.get for TYPE_NUMBER_NAN
2021-12-26 12:31:40 -06:00
Thomas Weber
e9e645a490
js: Mark op.add as NaN-able
2021-12-25 22:04:07 -06:00
Thomas Weber
60e97e482b
Remove tw-emit-fast
...
Now unused.
2021-12-25 21:15:30 -06:00
Thomas Weber
2d8d6d1842
Optimize EVENT_TARGET_VISUAL_CHANGE
2021-12-25 21:14:19 -06:00
Thomas Weber
23ff710a2a
Add more legacy no-op blocks to compatibility layer
2021-12-25 20:50:50 -06:00
Thomas Weber
5bee953432
js: mark op.subtract as NaN-able
2021-12-25 19:10:28 -06:00
Thomas Weber
04592fbcfb
Fix major compatibility layer performance issue after incomplete removal of thread.warp
2021-12-24 10:58:28 -06:00
Thomas Weber
5c8db76257
js: Fix error when target with constant name doesn't exist
2021-12-24 10:51:42 -06:00
Thomas Weber
6c32c4ddbb
js: Optimize sensing.of
2021-12-23 18:08:56 -06:00
Thomas Weber
a43e504c37
Remove number parsing from uncompiled math operations
2021-12-23 17:16:39 -06:00
Thomas Weber
61ccac1abd
Remove trailing whitespace
2021-12-23 17:16:34 -06:00
Thomas Weber
050f690ee5
jsexecute: Optimize compareEqual
2021-12-23 16:59:45 -06:00
Thomas Weber
ae3aad72b9
jsexecute: Simplify isWhiteSpace
...
null check is unnecessary in compiler.
2021-12-23 16:58:49 -06:00
Thomas Weber
9f64ce7d16
Remove use of removed thread.warp
2021-12-23 12:23:43 -06:00