TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

[Suggestion] Option to set a thread/sprite GPU processed #218

Closed Karpatok9089 closed 3 months ago

Karpatok9089 commented 3 months ago

Ability to run a part of the project on GPU. It's done like this:

1: Right clicking a sprite/block will show an option called "Switch processing to GPU" (Right clicking again after switching will show "Switch processing to CPU")

2: When used, it will put a comment on a starting block/sprite, marking them as GPU processed

When ran:

1 The project checks for the comment described above

2 If present, the script/sprite will be complied to GLSL instead of javascipt, allowing the GPU to process it.

This can be useful for 3d projects, as they would process 3d a lot faster than the cpu.

Note: The block that use the GPU (Like the effects blocks, pen blocks) will still use the gpu for processing

Karpatok9089 commented 3 months ago

Okay im dump and I just realized that this already been discussed