by WhereIsTheTruth · 2y ago · 0 comments
Waiting for your code to compile in order to be able to see how this new color looks, or this new font or this new title or this new game player speed feels, just is BAD, very BAD
You don't have to trust what i say
You can however trust facts
Here a real world example to verify that fact everyone can test at home
Clone this popular open source game written in Rust:
https://github.com/veloren/veloren
Compile it, `cargo build` easy
Insert "... an hour later .." meme
Nice, you got it to compile
Now change any value, just like a gamedev would do when he iterates on its game
Here for example, the strength of the lighting effect:
https://github.com/veloren/veloren/blob/master/server/src/cm...
Again, `cargo build`
Let us know, how long it took to compile on your machine
It took 17 seconds for me, 17!!! seconds!!!, just because i wanted to change the look of the lighting effect
Is this how you view the future of GPU/gamedev programming?
GPU/gamedev programming deserve better
Even gamers are sick of slow compilers
https://gameworldobserver.com/2023/04/07/shader-compilation-...
When fraudsters and propaganda takes over tech, that's what you get
> https://github.com/veloren/veloren
> Compile it, `cargo build` easy
> Insert "... an hour later .." meme
Download the repo - 15m
Cargo fetch - 6m
Cargo build - 4m34s
How did you get to 4hrs mark? I have 5900x with 3600MHz RAM on fast SSD and win10.
Am I the only one on HN that gets semi-normal build times in Rust? Are you all running compilers on i386 or something? Is this on HDD?
Please remember there's a lot of optimizations put in the legacy compilers.
What makes you think Rust compile times won't improve?
Iterative C++ compile times can be very fast if you know what are you doing, 17 seconds is very long unless you have link time optimizations on(which makes no sense for an iterative build).
The same meme is true for C++ projects, yet I don't see people screaming C++ propaganda when Unreal Engine uses it for development.
Come on now. You are the same thing you complain about.
?
What does this have to do with Rust GPU? A game is compiling slowly, I get that but what is the connection?
Ran on arch (AMD R7 7800X3D).
First build:
> cargo build 2574.91s user 79.89s system 1341% cpu 3:17.84 total
After change:
> cargo build 11.97s user 1.62s system 176% cpu 7.719 total
After another change, this time with --timings:
> cargo build --timings 12.00s user 1.60s system 176% cpu 7.722 total
Unit | Total | Codegen
1. veloren-server v0.16.0 4.9s 3.7s (75%)
2. veloren-voxygen v0.16.0 4.1s 2.0s (49%)
...What memory are you using? Are you overclocking? Are you using SSD?
edit: (also, the machine was recently rebooted and had very few processes running)
After i posted the comment i tested on a laptop running windows with wsl (i7-12850HX 16c 24t) and the first build was going above 8 minutes.
I ran this on MSVC toolchain on windows. With like 43% memory taken by various Firefoxe and IntelliJ windows.
Either compilers REALLY love CORES, or the Memory speed is causing issue :/
EDIT: Windows compilation 8min took less time than Linux 45min?