Forum Discussion

KevinJardine's avatar
KevinJardine
Start Partner
8 months ago

Movement performance advice?

I have brief movement animations (5 seconds) in my TypeScript Horizon Worlds starship game and unfortunately the frame rate drops from 72 fps to 50 fps during those periods. 

I'm currently using lerp to generate a position for every frame using onUpdate.

Any advice for improving movement performance?

4 Replies

  • After some experiments, including rendering only every few frames, it seems like the real issue is not the movement but when the starship arrives in a new sublevel.

  • GoodGameGomez's avatar
    GoodGameGomez
    Community Manager

    Hey KevinJardine 

    I have a few suggestions/questions:

    1. Are you making this mesh yourself or using genAI?

    2. What's your texture size/resolution?

    3. What is your vertex count on the mesh? 

    It could be the mesh itself is too detailed (too many vertices), you can decimate the mesh using a few tools. What are you using for your your modeling? Each tool has it's own decimation plugin/technique. 

    It could also be that the texture you're using is too high of a resolution. If you're using anything larger than 1080p, you might want to re-look at the texture size. 

    • KevinJardine's avatar
      KevinJardine
      Start Partner

      I'm a little confused. What mesh are you referring to? Do you mean content in the line of sight when my star ship passes by?

  • GoodGameGomez's avatar
    GoodGameGomez
    Community Manager

    Just the starship itself. Given your experimentation, I would assume it's the starship model itself. 

    Are you using GenAI to make the starship or using primitives?