Logo
  • Features
  • Educators
  • What's New
  • Blog
  • Showcase
  • About us
  • Contact
Try it now!
WitCat’s FPS
WitCat’s FPS

WitCat’s FPS

✍️
This document is created by Exotic from Gandi IDE community and edited by Gandi IDE Team.
image

Exotic Cocrea: https://cocrea.world/@Exotic

What does WitCat’s FPS Extension do?

WitCat’s FPS Extension can detect the stage’s frame rate, the web frame rate, and smooth out frame rate. This can be useful when creating games with Gandi Simple MMO to even out the players lag with the game, or can be used to change your games frame rate.

Getting started

To fully understand how to successfully incorporate WitCat’s FPS Extension to your game to make your players experience better, start off by installing WitCat’s FPS Extension

🐱 Stage

Stage blocks consist of 3 useful blocks:

image

The first two blocks, “stage FPS” and “stage current FPS” can both be toggled on and off to show onstage like variables and be used to compare with operator blocks.

“stage current FPS” and “stage FPS” being shown on screen
“stage current FPS” and “stage FPS” being shown on screen

The “enable stage FPS detection” block can be used to disable or enable detection of the stage FPS. We can run the code below to disable the detection.

image

We can now see the “stage FPS” block at 0 frames and we can see “stage current FPS” block stop moving and only shows 1 number. Don’t worry the project has not been broken, but FPS detection has been turned off, to revert this we can just run the same code but instead of “disable” we switch it to “enable” so stage FPS is shown.

FPS detection disabled
FPS detection disabled

🖥️ Web

The web blocks are made up of 3 more useful blocks:

image

The first 2 blocks “web FPS” and “web current FPS” can be shown onstage like variables and be compared with operator blocks.

“web FPS” and “web current FPS” being displayed on screen
“web FPS” and “web current FPS” being displayed on screen

However these are different than stage FPS blocks, web FPS is your browser’s frame rate, everyone’s frame rate is different than others which makes this block useful to compare your frame rate or the users frame rate with what the stage is running at.

Likewise same as the “web FPS detection” block, this block disables or enables the web frame rate detection.

the block being used with green flag clicked
the block being used with green flag clicked

This block enables/disables both “web FPS” and “web current FPS” blocks all together. Whenever we disable web FPS detection, we can see that they turn 0.

web FPS detection set to disabled
web FPS detection set to disabled

👀 More

More has 1 singular block.

image

This block may seem redundant at first but its meaning can help out with MMO games and smoothing FPS out.

There are two players in an MMO game, the first player is at 30 FPS and the second player is at 120FPS. If they move 5 steps at the same time, player 2 will be faster. To fix this, i can use this block to ensure the two players move at the same speed relative to their FPS.

The yellow part represents my desired speed and the green part represents my FPS.

image

📚End

Thank you for reading this doc to expand your Gandi IDE extension knowledge to make your creativity a possibility!

💡
If you have any questions or suggestions, you can find us in the discord server: https://discord.gg/U3nyveCvRa
Logo

Designed by 2ndR with love

Discord