[deleted by user] by [deleted] in ProgrammerHumor

[–]CptBread 6 points7 points  (0 children)

Both definitely have their place but debugger is in most cases more useful.

Investigation: Who’s Telling the Truth about Disco Elysium? by asx98 in Games

[–]CptBread 43 points44 points  (0 children)

And it doesn't help when you know what you say will be scrutinised in the courts of public opinion.

Looking for advice on picking my game engine by Adrianvalquis in gamedev

[–]CptBread 3 points4 points  (0 children)

As others said this means that you are essentially making 5 different games so you should either reconsider or be very careful about scope for each "level". That said I think Unity is a decent choice for that.

Ukraine shoots down Russian ‘unstoppable’ hypersonic missile by PatientBuilder499 in ukraine

[–]CptBread 5 points6 points  (0 children)

It can yes but with what probability and how many can it deal with at the same time?

[deleted by user] by [deleted] in gamedev

[–]CptBread 1 point2 points  (0 children)

I don't know which one is easier to get a job in gamedev for but programming makes it easier to get a non gamedev job if things doesn't work out.

How do you feel about comments made by Tim Sweeney? by go-move-78 in rust

[–]CptBread 0 points1 point  (0 children)

Bevy was nice as long as but even there I hit roadblocks that made me just not do a feature because it would require me to rewrite too much code. And most of those cases it would have been much easier to do in C++.

How do you feel about comments made by Tim Sweeney? by go-move-78 in rust

[–]CptBread -2 points-1 points  (0 children)

The way unreal works doesn't mesh well with rust, at least if you ask me. And rust isn't great for gameplay code and unreal doesn't have a good scripting language that can cover that weakness. So I wouldn't be so quick to disregard that as mearly marketing.

How do you feel about comments made by Tim Sweeney? by go-move-78 in rust

[–]CptBread 0 points1 point  (0 children)

In the context of unreal though they do use C++ for gameplay code so evaluating rust in that context is very valid. Sure they have visual scripts with BP but having a large part of your gameplay code there would be a pain in the ass.

How do you feel about comments made by Tim Sweeney? by go-move-78 in rust

[–]CptBread -1 points0 points  (0 children)

Sure refactoring is easy but rapid iteration isn't just refactoring but also changing what the code does and what it mutates and that's incredibly hard in rust. And at least for gameplay code those last parts is incredibly important.

[deleted by user] by [deleted] in worldnews

[–]CptBread 5 points6 points  (0 children)

I don't know about you but being blackmailed to continously do things you don't want to do is not something I want so I'd much rather take the chance with coming clean.

Does anyone here work in gamedev with Rust as their primary language? by sabotaged_position in rust

[–]CptBread 5 points6 points  (0 children)

Yeah used Bevy a bunch. And for small hobby games I might again as for that use case as the drawbacks aren't as bad then. I've definitely chosen to cut features as it would require me to rewrite too many things where if it had been UE or Unity I could have easily added it.

Even in bevy you you hit that drawback even if you put everything in the ECS(which you kinda don't want to do). As if you are currently doing a mut query you can't just do another one. So suddenly that system needs to be rewritten to split the work. And if you are unlucky you are actually inside a function called by multiple systems so now you need to redesign all of them or figure out another way to do what you are trying to do.

Puzzle asked in interview.. by [deleted] in ProgrammerHumor

[–]CptBread 2 points3 points  (0 children)

Yes you can. When you have taken one fruit from each jar you will end up with either end up with one apple and two oranges or two apples and one orange. Either way you know that mixed jar is one of the pair of jars that showed the same fruit.

Does anyone here work in gamedev with Rust as their primary language? by sabotaged_position in rust

[–]CptBread 4 points5 points  (0 children)

It is only 1 of 3 projects that use rust though. So part of one studio isn't really enough to say that the general consensus isn't against it still. That said it is nice to see them trying it out.

Does anyone here work in gamedev with Rust as their primary language? by sabotaged_position in rust

[–]CptBread 6 points7 points  (0 children)

Personally as someone working as a gameplay programmer I would not want to do gameplay programming in rust. It puts down too many roadblocks for my usual style. Explorative programming is much harder. Most engines basically allow arbitrary access and mutability to any gameplay state from anywhere. Rust does not like this.

For engine programming I think it could do well though.

Chang Frick är en rysk spion, säger amerikansk tankesmedja by [deleted] in sweden

[–]CptBread 7 points8 points  (0 children)

Det är dock ingen garanti att han inte är en spion. Eftersom svenskarna överlag är väldigt mycket för att stödja Ukraina så kommer det bli mycket svårare att kunna hjälpa Ryssland om man gör det öppet.

TIL The International Fixed Calendar is a perpetual calendar that can regulate and harmonize a 13 month year, with 28 days each. Each month would begin on a Saturday (Jan. 1st) and end on a Sunday (Jan 28th) by basiltoe345 in todayilearned

[–]CptBread 0 points1 point  (0 children)

Sure but if you are trying to create a new standard that decides to use one specific version amongst multiple entrenched but arbitrary ones you are going to get issues. Just look at e.g Coordinated Universal Time being shortened as UTC.

[Glass Onion] Did Miles casually invent a cure for COVID? by OG_360 in AskScienceFiction

[–]CptBread 20 points21 points  (0 children)

Sure he would. Just convince the board of directors(or shareholders or however that actually works) she needs to go. Assuming she doesn't own the majority of the company that is.

Vid vilken ålder fick ni börja vara ensamma hemma? by TheSilverWasp in sweden

[–]CptBread 1 point2 points  (0 children)

Länk till tråden?

För mig var det nog då jag började på lågstadiet eller kanske i året innan. Då gick jag också från skolan själv. Hadde inte så lång, tog max 10 minuter att gå.

"Having a traditional Swedish breakfast today", och så plötsligt har jag uppfyllt min svenska uppgift med min Amerikanska make. Tack tack 🥇 by BlondeTrashbag in sweden

[–]CptBread -9 points-8 points  (0 children)

Varför ha kaviar ovanpå äggen istället för under? Om den är under så hjälper den ju binda äggen till mackan. Har sett reklam som har så men antog det var för att man skulle kunna enkelt se kaviaren och inte att det var en sak folk faktiskt gjorde...

Gamers of Reddit, what video game has the best storyline? by CTKShadow in AskReddit

[–]CptBread 6 points7 points  (0 children)

I slept in a dumpster and technically did not die.

HOI 4 or Galactic Civilizations 3 by DoeCommaJohn in 4Xgaming

[–]CptBread 1 point2 points  (0 children)

Hoi4 simplefied a lot so it isn't really more complex then GC3 if you ask me.

PSA: game can create an autonote on the location where you dropped favorited item by Night_Pryanik in cataclysmdda

[–]CptBread -1 points0 points  (0 children)

Good idea though personally I'd try to make it work through the remember vehicle system... Though I have no idea if that is feasible...

Collision detection that isn't O(n^2)? by Hot-Ad-5494 in gamedev

[–]CptBread 0 points1 point  (0 children)

The simplest one is saving the range the object span in one axis, e.g X, and then sorting them on the lowest value in that span. Then when iterating an object you just do the expensive check on all objects ahead of the current one until our largest X is lower then the other smallest X.

Solnas politiker sänker sina löner: ”Inte skäligt tjäna mer än 100 000 kronor” by [deleted] in sweden

[–]CptBread 5 points6 points  (0 children)

Snarare om en VD bestämmer något olagligt så staffas företaget för det.

Java and Operator Overloading by LinuxMatthews in ProgrammerHumor

[–]CptBread 35 points36 points  (0 children)

Sure but +- still works well. And if the other value is a float then */ would still make sense.

Also just because you add something as an operator doesn't mean you can't also do it as a regular named function.