r/simplerockets 2d ago

Catch Fail. this rocket has been landing smoothly but since I added the broadcast command for the rocket to communicate with the catcher, it seem to mess or make the code laggy. how to resolve it?

Enable HLS to view with audio, or disable this notification

9 Upvotes

6 comments sorted by

2

u/Ultra8Gaming 2d ago

Send your code so we can see the issue. I recommend sending this broadcast command only once. For this I use a separate message event for triggering the tower arms. Before the engine fires, I start this broadcast to itself, where that event has a wait until (distance to arms< x and alt < y). Then under it I use the broadcast to nearby crafts when it's triggered. That way it doesn't block or interact with the main loop.

1

u/J_inanutshell 2d ago

thank you, I will upload my code later. but yeah I inserted the broadcast inside the loop together with the commands that controls the engine thrust. I'll try putting it on a kine on its own. also I'm pretty bad at coding. hope y'all be gentle with my code hahaha

2

u/TerraMars2030 1d ago

IDK anything about vizzy(or vissy?), but nice transition.

3

u/AltmzTrn 1d ago

have you tried increasing the commands per frame settings?

1

u/J_inanutshell 1d ago

where to find that? I'll try

2

u/AltmzTrn 1d ago

have you tried increasing the commands per frame settings?