Membru Ucenic
Membru Ucenic
  • Mesaje: 16
    Membru din: 01 Mar 2025, 02:28
  • Reacții: 72
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Regat: Chunjo
  • Medalii

    *Descriere:

    Effect Frame Update Optimization

    The frame controller update function, used in mesh and texture effect animations, originally relied on a fixed loop (up to 20 iterations) to simulate the passage of frames based on the accumulated elapsed time. This had several downsides:

    Inefficient CPU usage due to repeated branching.
    Limited scalability – could miss frames if elapsed time was large.
    More complex and harder-to-maintain code.

    What's Improved with the Change?

    The new logic replaces the loop with a direct calculation.
    It computes how many frames should have passed based on the total elapsed time.
    All necessary frame advancements are done at once, in a single operation.
    Looping behavior and animation end conditions are still handled properly.

    Benefits

    Lower CPU usage – avoids unnecessary loops and branching.
    Scales better – handles large time jumps (e.g., low FPS situations) more smoothly.
    Cleaner, more maintainable code.

    Summary

    This optimization improves CPU efficiency and performance of mesh and texture effect animations during low-FPS situations, resulting in smoother visual effects. It does not guarantee a stable 60 FPS but ensures frame updates are handled more efficiently and responsively.


    *Link download / Code:

    EffectLib -> FrameController.cpp

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.

    Nou Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Nou Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele rapid & simplu.

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

    Înapoi la “Îmbunătățiri”

    Informații

    Utilizatori ce navighează pe acest forum: erastrau, ro_adonis și 2 vizitatori

    Discord ID copiat: