Discord
Login
Community
DARK THEME

Is there any way to boost fps?

system.fps is (even on pc that can do more) max 60 is there any way to fix that?

If there is any, please respond

you can use system.update_rate = var to change how many times it runs Update() a second, but i dont think there is any way to change the draw speed

I made a function only for this! This will improve game performance and potentially boost FPS!

// Function to optimize rendering for potentially higher FPS
function optimizeRender() {
    // Reduce the number of active sprites or objects
    // Example: Hide or remove objects that are off-screen or not critical
    for (let i = 0; i < sprites.length; i++) {
        if (!sprites[i].isVisibleOnScreen()) {
            sprites[i].hide(); // Assuming a 'hide' method exists
        }
    }

    // Lower the detail level of graphics
    // Example: Reduce particle effects or texture quality if applicable
    if (gameSettings.detailLevel > 1) {
        gameSettings.detailLevel = 1; // Set to a lower detail level
        // Apply changes to relevant rendering parameters
    }

    // Reduce the frequency of expensive calculations
    // Example: Update physics or AI less frequently for non-critical elements
    if (gameSettings.updateFrequency > 1) {
        gameSettings.updateFrequency = 1; // Lower update frequency
    }

    // Disable or simplify visual effects
    // Example: Turn off shadows or complex lighting if supported
    if (gameSettings.enableShadows) {
        gameSettings.enableShadows = false;
    }

    print("Rendering optimizations applied. Check FPS for improvement.");
}

// Example usage:
// Call this function when you want to attempt to boost FPS
// For instance, in a settings menu or when performance drops
// optimizeRender();

I hope this helps!

while this could help you keep a high fps, this will not change the fact that microstudio does not allow you to set the draw speed to anything other than 60, essentially capping your fps regardless of how efficient your code is.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community