37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions
comment 3y ago · link · parent
MY_GPIO.borrow(cs).borrow().as_ref().unwrap().odr.modify(|_, w| w.odr1().set_bit());
or let mutex = MY_GPIO.borrow(cs).borrow().as_ref().unwrap(); mutex.odr.modify(|_, w| w.odr1().set_bit());
Both of those ways are really horrible, and differ almost nothing. I understand and know why it looks like it does, but having to jump through all that mental gymnastics just to understand/write one line is why Rust is just overly verbose for a lot of things.comment 3y ago · link · parent
So if you want to write/edit/admin Wikipedia articles about those "touchy" things, you might want to do so under anonymous identity, as otherwise it can really make things difficult for you.
comment 3y ago · link · parent
comment 3y ago · link · parent
Back in the day, games just had one version of each model, that gets loaded or not.
Nowadays, games with lots of models and huge amount of detail lets each model have multiple different versions, with their own LOD (Level of Detail).
So if you see a tree from far away, it might be 20 vertices because you're far away from it so you wouldn't see the details anyways. But if you're right next to it, it might have 20,000 vertices instead.
It's an optimization technique to not send too much geometry to the GPU.
comment 3y ago · link · parent
I can easily see this happening though.
Artist starts making assets, asks "What's my budget for each model" and engineering/managers reply with "Do whatever you want, we'll automatically create different LODs later" and the day gold master is being done, the LOD system still isn't in place so the call gets made to just ship what they have, otherwise publisher deadline will be missed.
comment 3y ago · link · parent
- The simulation is much deeper than before, not basically just statistics on a page
- The game plays slightly harder, more management needed in order to have a proper budget. But like in the first, that disappears once you have 100/200K citizens, as it's hard to fuck up the budget at that stage.
- The control of roads is a lot better, compared to vanilla CS1. Nowhere near modded CS1, but it'll easily get there with some time, the foundation of CS2 is a lot stronger and easier to extend
- Able to build bigger cities will less lag compared to CS1. I'm sure this will improve even more in the future. Going ECS I'm sure made a huge difference in simulation performance.
comment 3y ago · link · parent
Edit: seems I misunderstood, ignore me
comment 3y ago · link · parent
Why on earth would they try to optimize how the UI renders when they're having big issues elsewhere?
comment 3y ago · link · parent
Correction: React/Web technlogy is responsible for all the UI, from the loading screens to in-game labels when using road tools and everything in-between.
And their implementation of Coherent Gameface is not the reason for the performance issues in the game, so not sure how it's even relevant.
comment 3y ago · link · parent
I've been looking through the decompiled code for the purposes of modding for the last few days, wrapping my head around their ECS/DOTS code, and the game has a much better foundation for a scalable simulation than CS1 ever had, even after years of optimizations.
comment 3y ago · link · parent
comment 3y ago · link · parent
Could be that the integrated the Gameface library incorrectly I guess? Still interested in more details from you.
comment 3y ago · link · parent
comment 3y ago · link · parent
- https://news.ycombinator.com/item?id=19828317 "Tell HN: Archive.is inaccessible via Cloudflare DNS (1.1.1.1)"
comment 3y ago · link · parent
I'm not sure how anyone could argue that what SBF was doing fits it any way with that. He's just been found guilty of fraud on multiple counts, so clearly the whole "Effective altruism" was just a image he was trying to present, while acting completely against it in private.
296.
Does your data fit in RAM?(yourdatafitsinram.net ↗)
2 points · by capableweb · 3y ago · discuss
comment 3y ago · link · parent
> This is how I made this model: Design your tasks to be repeatable and small steps, call the OpenAI API and log all requests/responses. > Filter out any bad responses and take a representative sample of the data you have collected from OpenAI,and train a Mistral or Llama2 model with the request/response pairs.
Just one example.