FurryR / hyren

Enjoy Turbowarp features everywhere.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A tampermonkey script to use Turbowarp features anywhere.

(Hint) Click title to install!

Visitors πŸ› οΈ Build

πŸ‡ΊπŸ‡Έ | πŸ‡¨πŸ‡³

🐱 Features

  • βœ… Turbowarp features anywhere.
  • ⭐ Always keep updated with Turbowarp.
  • πŸ€– Requires no extra configuration.
  • πŸ› οΈ Perfect compatibility with Eureka.

πŸ”₯ Supported platforms

  • Scratch
  • Codingclip
  • Aerfaying (ι˜Ώε„Ώζ³•θ₯)
  • Xiaomawang (ε°η ηŽ‹)
  • CodeLab
  • Xueersi (ε­¦θ€Œζ€)
  • Creaticode

❓ Although these platforms do have native compiler, we still support them but it may lead to some problems.

  • Cocrea
  • Co-Create World (ε…±εˆ›δΈ–η•Œ)
  • Adacraft
  • 40code
  • Turbowarp
  • PenguinMod

πŸ› οΈ Compatibility

If an error is occurred, it is Hyren's bug. If the error still presists after disabling Hyren, it is Turbowarp's bug. -- @garbomuffin

Usually you can use hyren to boost most projects, but there are always some exceptions.

  1. When using Gandi IDE, I randomly get some error but the project works fine.

    Just ignore these errors, your project is running fine. Hyren will fallback to interpreter when compilation fails, so it may affect performance.

  2. I use Microsoft Edge. I used hyren but it didn't boost a lot.

    Turn off Edge's "Enhanced security mode". It disables the browser's JIT so it is extremely slow.

  3. Other errors.

    Well, hyren is just an experimental project. Disable hyren may work, but you can't enjoy compiler anymore.

πŸ€” How to use

  1. πŸ”½ Click hyren title or here to install the extension. You must have Tampermonkey / ViolentMonkey installed in your browser.

  2. πŸŽ‰ Done!

⚠️ WARNING: make sure you have read Compatibility section before you installed.

πŸ“„ Documentation

  • Hyren.compiler(flag?: boolean)
    Enable/Disable compiler. If flag is not specified, returns current status. Defaults to true.
  • Hyren.compiler.warp(flag?: boolean)
    Enable/Disable compiler warp timer. If flag is not specified, returns current status. If you are using editor, it is set to true, otherwise it is set to false at first.
  • Hyren.interpolation(flag?: boolean)
    Enable/Disable interpolation. If flag is not specified, returns current status. Defaults to false.
  • Hyren.hires(flag?: boolean)
    Enable/Disable high quality renderer (aka HQPen or High quality pen). If flag is not specified, returns current status. Defaults to false.
  • Hyren.fps(num?: number)
    Set framerate to num. The allowed framerate range is [0,250]. 0 is a special value which means "matching device screen refresh rate". If num is not specified, returns current specified framerate. Defaults to 30.
  • Hyren.maxClones(num?: number)
    Set max clone limit to num. If num is not specified, returns current specified limit. Defaults to 300.
  • Hyren.fencing(flag?: boolean)
    Enable/Disable fencing check. If flag is not specified, returns current status. Defaults to true.
  • Hyren.miscLimit(flag?: boolean)
    Enable/Disable miscellaneous limits presented by original Scratch. If flag is not specified, returns current status. Defaults to true.
  • Hyren.size(width?: number, height?: number)
    Set stage size. If both width and height are not specified, returns current status. Otherwise, set stage width/height while keeping the unspecified one.
  • Hyren.save()
    Save settings to the project. Compatible with Turbowarp.

⚑ Performance

⚑ Benchmark using: https://scratch.mit.edu/projects/441947766/

Testing on: 12th Gen Intel(R) Core(TM) i7-12700F + Nvidia RTX 4060 (32 GiB RAM, 8 GiB VRAM)

Platform Computation Data Pen Overall
Turbowarp 27929 4120 1711 6234
Scratch 28592 4054 411 3544
ClipCC 27929 4094 447 3640

Tips: Hyren does not provide renderer optimizations.

Note: This section is outdated. My graphics card is not working, someone plz help me test it

About

Enjoy Turbowarp features everywhere.

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 97.2%Language:JavaScript 2.8%