LuciferMorningWood

u/LuciferMorningWood@lemm.ee
0 posts · 22 comments

Recent posts

No posts.

Recent comments

It's a feature called required components. Basically, you can use #require(components list here) attribute to say that when a component is inserted, also insert required components. I don't know if there's a documentation for it, or specifically what component requires what, personally when I'm looking for required components I'm looking at component's source and they'll be listed there (Sprite, for example https://docs.rs/bevy_sprite/0.16.0/src/bevy_sprite/sprite.rs.html#20)

Note that required components work recursively: when component requires a component that has it's own requirements, they'll also be inserted

on dreaming · c/internetfuneral · 4 pts · 3y

I personally like counting my fingers. It's quick, somewhat discrete and kinda trippy if it works. For me in a dream I can see I have five fingers, but when I actually count then I can count up to five but then just... keep counting

on ttyrule · c/196 · 1 pts · 3y

I thought you should use display server when you have dedicated GPU as the display server configures power save and power state while TTY doesn't, at least by default. For me nvidia-smi reports 100W in TTY and ~20W on X

on rule · c/196 · 13 pts · 3y

I have become the fool, the bamboozled

on rule · c/196 · 12 pts · 3y

It's also ironic, they are dying at the bottom of the ocean because the owner of the company was cutting cost on safety equipment

on rule · c/196 · 26 pts · 3y

If you want to frighten a millionaire put them in a rusting submarine under the ocean of blood with no view on the outside world but a camera. There is something moving just out of your view.

on Cosmic Rays? · c/programmerhumor · 4 pts · 3y

Iirc the issue was that while(true) would be removed while it should be replaced with ret and this caused a bug where the binary would execute next function

But I believe this way of cosmic ray detection would work

volatile bool condition = true;
while(condition) {
}
printf("Cosmic ray detected");