r/StarFrame • • 8d ago

Devlog #8 - Engineering Designer

2 Upvotes

Hello, Everyone,

Over the past couple of days, I have mainly been working on a new feature called the Engineering Designer a place where you can build and test your designs, then save them as blueprints that can be shared with other players.

The goal of this feature is to give players a place to try out what they can build in the game and see how it will work. You can use it to design ships, factories or just individual components that you want to have ready to use in your future builds.

Inside the Engineering Designer, there is a library containing all the available devices you can use in your designs. Once you have put everything together, you can test your creation and see how it works, rather than just build something without knowing whether it will do what you intended. :D

This is the first version of the Engineering Designer, so there is still room for improvement. I can already see that object snapping needs a bit more work, but for now, I think it is a good starting point. I will continue polishing it and adding features based on players’ feedback and what they find useful when building their creations.

I’m also working on a new tool that will let players place predefined images on their creations. This is still in progress, so I will share more about it when it is ready.

Thanks for reading and following the development of StarFrame! :)


r/StarFrame • • 15d ago

Devlog #1 - StarFrame development has started

Thumbnail
gallery
1 Upvotes

Hello everyone,

Thanks for taking the time to read my next devlog. Here is what happened after setting up the infrastructure.

I started planning the game design and how the game should look. I’m a big fan of Starbase, which I really enjoyed, and I haven’t found another space simulation game with the same level of engineering. This helped me decide what type of game I wanted StarFrame to be.

First, I started researching how our first solar system would look. I searched Google for research papers or a database that I could use to generate the night sky using real star positions.

What I found was the HYG Stellar Database 4.1. It contains the information I needed to render stars with colours, positions, and brightness based on real data. Using this, I generated our night sky.

The next step was deciding how big to make the first solar system and how many planets and moons to include. I decided to start with one sun, one planet, and one moon. For now, the planet will have a radius of 12 kilometres, and the moon will have a radius of 1.8 kilometres.

I then created the solar system generation code, with the planet orbiting the sun and the moon orbiting the planet. The system includes gravity, while the orbits follow calculated Keplerian paths to avoid running a full gravitational simulation for their movement.

One full day lasts around 40 minutes and one year last around 10 days. The goal is to give the day and night cycle a realistic feel, with moon phases, including a full moon, depending on the moon’s position relative to the sun and planet.

For the planet’s atmosphere, I started with Bevy’s atmosphere example. It provided a good starting point, but I wanted to look deeper into what I could adjust or add to improve the atmosphere’s appearance.

I explored atmospheric scattering and aerial perspective to create distance haze, sky colour, and the glow around the planet’s edge. After a 1-2days of fine-tuning and experimenting, I’m happy with the results and how the planet’s atmosphere feels.

That’s it for Devlog #1. Thanks for reading!


r/StarFrame • • 5d ago

Devlog #9 - Hinges and Sliders

1 Upvotes

Hello, everyone!

Today I want to show you two new devices in Starframe: hinges and sliders. I wanted to give players the tools to build their own doors, cargo elevators, and other moving structures.

Both devices come in several shapes and sizes. You can bolt a plate, beam, or larger assembly to the moving head, and it will move with it as long as the device can handle the load. Sliders also support rail extensions, so you can build anything from a short sliding panel to a full cargo lift.

You can use two compatible hinges or sliders together, too. Fasten both bases to the same rigid frame and attach both heads to the same plate or beam. In the showcase, twin sliders lift a cargo crate two metres to an upper landing, while a hinged service door opens to reveal a generator bay.

I’m really happy with how these devices turned out, and I’m looking forward to seeing what you build with them. Thanks for reading, and see you in the next devlog! :)


r/StarFrame • • 4d ago

Devlog #10 - Performance Optimisation

4 Upvotes

Hello everyone,

As I kept adding new devices and features to StarFrame, I noticed the game was getting slower. I decided to spend some time optimising what I already had and start profiling the game to see where the time was actually going. To be honest, I’m still new to Rust and Bevy, and figuring out what the profiler was telling me took a while :D

One of the first things I looked at was ship physics, especially collisions with the voxel terrain. The ground is made up of a lot of triangles, and most of it stays the same while you’re flying around. I changed how I handle terrain collision geometry so the physics engine can reuse it when the terrain hasn’t changed. In the terrain tests I ran, that reduced the time spent on physics by around 40%.

I also improved how the game checks for collisions between ships. Before, ships within a fairly wide radius would trigger more detailed checks of their relative movement. Now I can rule out more pairs early and save the expensive calculations for ships that are close enough and moving in a way that could actually bring them into contact. That still gives the physics engine time to catch a collision before it happens.

Another issue was the planet itself. The planet is always moving, so even a ship parked on the surface could end up doing extra work just to stay in the same place relative to the ground. I changed that so objects resting on the planet can move with it. They still react when something actually moves them. Together, these changes made a big difference to server performance in the scenes I tested.

I also found some waste in the UI. For example, devices show live readings in their configuration panels, and I was updating UI elements even when you couldn’t see them. Now only the visible panels are mounted in the UI tree and updated. That helped the client’s FPS, especially in busier scenes.

On the networking side, I made some changes to reduce traffic and ran a local load test with 64 connected clients. All 64 synced, and the server met every tick deadline during the measured run. I also tried 100 clients. They all connected, but the server missed about one in six tick deadlines. So 64 is looking like a reasonable target, and I still want to see how it holds up with real players over the internet.

In the attached video you can see 100 ships in the same world, some flying and some stationary. Once the fleet settled, the server averaged around 60 ticks per second. I can still see occasional drops, and loading a big fleet can cause a noticeable hitch on the client. Profiling that hitch showed the client spending time checking ship connections and building the scene, so I have a much better idea of where to look next.

There’s still work to do, but it feels good to be able to measure the problems instead of guessing. This is only the beginning of the optimisation work, and I’ll keep coming back to it as the game grows :)


r/StarFrame • • 15d ago

Devlog #0 - Choosing the engine and preparing the infrastructure

Post image
2 Upvotes

Hello everyone,

For this first devlog, I’ll start with how I investigated which game engine to use for StarFrame.

I started the game using Godot, but I realised that my specific game would involve a lot of calculations, and Rust might be a better fit. So I decided to switch from Godot to Bevy, a game engine built in Rust.

Bevy is a relatively new game engine, but I still think the full game can be built with it. I started reading different posts in r/bevy to learn about the engine, its community, and what people are creating with it. After that, I decided to give it a try. On paper, everything looks fine and should work.

I know developing the game in Rust will take me more time because my experience is limited, but the plan is to use coding assistance to help me get started with Rust and Bevy while learning along the way.

Before starting the game itself, I needed to set up the development infrastructure and have somewhere ready to deploy it. I want to quickly and easily share the game with different people so they can test it and give feedback sooner.

For this, I used my dedicated Hetzner server and set up Kubernetes to make building and deploying updates easier and get the game online for people to access.

I also set up Grafana and Prometheus to monitor the future game server and help investigate network problems and performance issues.

Now the infrastructure and local development environment are ready. With this, I’ll close Devlog #0 and continue with the next one about the base setup of the game.

This is my first time writing a devlog, so sorry if it’s not very well structured or put together. I’ll try to improve the posts as I go. Thanks for reading!