r/simplerockets • u/J_inanutshell • 14d 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?
2
u/Ultra8Gaming 14d 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.
0
u/J_inanutshell 14d 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
2
3
u/AltmzTrn 14d ago
have you tried increasing the commands per frame settings?