Skip to main content
KevinJardine
Honored Contributor
April 23, 2025
Question

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

KevinJardine
Honored Contributor
April 24, 2025

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
Community Manager
April 25, 2025

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. 

March calendar of all Mentor Workshops and Office Hours
KevinJardine
Honored Contributor
April 25, 2025

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
Community Manager
April 25, 2025

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?

March calendar of all Mentor Workshops and Office Hours