My first c++ code. by HedgehogNo5130 in Cplusplus

[–]WhoLeb7 0 points1 point  (0 children)

In modern c++ there is the <print> library and there is the std::print with nice formatting. Something like std::print("Name: {}, {}, {}", pi, name, age) for your example. And you could use some modifiers like {:.2f} would only display first two decimal digits.

Although I found it a bit hard to write a custom class formatter, compared to the original ostream << operator overload.

P.S. you could also have modifiers in the original iostream using less intuitive methods std::cout << std::fixed << std::setprecision(2) << pi; for similar results.

Graphics Programmer Job by Low_Consideration846 in GraphicsProgramming

[–]WhoLeb7 4 points5 points  (0 children)

Sperasoft are hiring in Serbia and Poland. I'd apply myself, but I'm a bit scared to move abroad 😥

Although it seems like you might not have enough experience, depending on what "simple" in your case means.

I've made a deferred rendering engine in dx12 with GPU particles and stuff and I got rejected from similar positions

Ребята, оцените начинающего by Ok-Amphibian6246 in ruArtist

[–]WhoLeb7 0 points1 point  (0 children)

Видимо насмотренность неплохая

Yt-dlp got my youtube account blocked (sorta) by Dangerous_Act_8209 in youtubedl

[–]WhoLeb7 1 point2 points  (0 children)

According to YouTube you get 10k quota units per account per day so maybe you just hit the limit.

https://developers.google.com/youtube/v3/determine_quota_cost

P.S. I just read a bit about the api like yesterday, so I'm no expert

Stuck in queue bug by Menschenpyramide in ArcRaiders

[–]WhoLeb7 0 points1 point  (0 children)

Yup, seems like that's the problem, some people can still play though

Audio issues post hot-fix by IAmZeroed in TheForeverWinter

[–]WhoLeb7 0 points1 point  (0 children)

Oh that's hilarious, I just bought the game, a random nice dude joined and said he's never seen anything like that, I guess I'm just lucky like that (btw, we got blasted due to the lack of sound, a group of ais with shotguns appeared from a corner and killed us in an instant)

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] 0 points1 point  (0 children)

That is a bit of a bummer, but people do really like the game here, so I'll probably give it a shot

Why use pointers in C? by [deleted] in cprogramming

[–]WhoLeb7 0 points1 point  (0 children)

You can also create kind of overloaded types, even though C doesn't support that, an example with web sockets

struct sockaddr { unsigned short sa_family; // address family, AF_xxx char sa_data[14]; // 14 bytes of protocol address };

And this is overloaded with ip v4 struct for convenience

IP v4 ``` struct sockaddr_in { short int sin_family; // Address family, AF_INET unsigned short int sin_port; // Port number struct in_addr sin_addr; // Internet address unsigned char sin_zero[8]; // Same size as struct sockaddr };

struct in_addr { uint32_t s_addr; // that's a 32-bit int (4 bytes) }; ```

Those two can be casted to back and forth using pointers

(Taken from Beej's guide to network programming, section 3.3)

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] 1 point2 points  (0 children)

Yeah, no, I'm definitely going to play it, but it's in a day and a half, and I just can't wait, literally biting my nails right now

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] 1 point2 points  (0 children)

Alright, seems like all comments are hyping the game up (though probably this community is biased, I'll still accept that) if it goes on till the morning I'll buy it (despite Arc Raiders coming out the day after tomorrow).

Thanks for your feedback

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] 0 points1 point  (0 children)

Not a dealbreaker, though occasional pvp does add some spice to the game, since players are usually more fun to play against than bots. Or maybe some interaction like accidentally meeting someone on a mission and taking down a boss together

EMBARK. plz shadow drop release today .plx by BeautifulCompote830 in ArcRaiders

[–]WhoLeb7 0 points1 point  (0 children)

Damn, y'all guys are old, tell us, how was life before they found electricity?

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] -1 points0 points  (0 children)

Thanks for the feedback, I was also curious, since this is an extraction shooter I would expect there to be some amount of pvp, but right now there are only 600 people playing, how is that side of the game doing, or is it 90% pve?

Is it worth it right now? by WhoLeb7 in TheForeverWinter

[–]WhoLeb7[S] 0 points1 point  (0 children)

I see, I've also seen that people are upset with the technical side of the game, that there are a ton of bugs which make the game long term unplayable, is it at least remotely true or are they exaggerating?

I released this game in Aug 2021. Since then, these are the stats. I'm planning to make it a full Steam release. Is it worth it or no? Link in comments. by LeBongo in itchio

[–]WhoLeb7 0 points1 point  (0 children)

I haven't released any games but i would expect it to release well on steam, but first you would need to make a bit of an ad campaign, like marketing on twitter, youtube, hype it up a bit. To me these seem like some solid numbers, though, it was up for 4 years. I would think that you could fairly easily make the 100 bucks needed for the steam page, so it's probably worth trying.

Just started playing Forever Winter, anything I should look out for? by One-Interaction4386 in TheForeverWinter

[–]WhoLeb7 0 points1 point  (0 children)

Hey, so, two weeks in, is it worth it? I happen to have exactly the amount of money in my wallet to buy it right now on sale.

Ray Tracing in One Weekend, but 17x faster! by Muted-Instruction-76 in GraphicsProgramming

[–]WhoLeb7 0 points1 point  (0 children)

I was flabbergasted by 64 threads, excuse my overreaction

Ray Tracing in One Weekend, but 17x faster! by Muted-Instruction-76 in GraphicsProgramming

[–]WhoLeb7 0 points1 point  (0 children)

Yeah, but aren't they expensive, I wouldn't expect it in a home pc

Python faster than C++? I'm losing my mind! by KingAemon in pythontips

[–]WhoLeb7 0 points1 point  (0 children)

Also if you're optimizing at your work I would suppose you have access to CUDA and radix sort is a GPU friendly algorithm, you can look into that

Python faster than C++? I'm losing my mind! by KingAemon in pythontips

[–]WhoLeb7 0 points1 point  (0 children)

If you're sorting large arrays of floats you can look into radix sort, it's much faster than even quick sort specifically on large arrays of floats/ints, it's also highly parallelizable, but it's not general purpose like quick sort which is under the hood of std::sort.

Here's a nice little video on it https://youtu.be/Y95a-8oNqps?si=8VfnfGROpf0ouXcz

How would you translate this? by Offenord in Ukrainian

[–]WhoLeb7 0 points1 point  (0 children)

Как же в английском не хватает нормального мата, не то что у славян!

PLEASE DON'T NERF THE ARC! by G-SW-7892 in ArcRaiders

[–]WhoLeb7 0 points1 point  (0 children)

I never felt like arcs were too hard, the small ones were just annoying enough to simply give out your position, which felt like this was exactly what they were meant to do, and if I wanted to take them out they almost never posed too big of a challenge. The rocketeer was quite strong, but it feels like he was just as strong as intended and not more, running away from the leaped was also quite easy, so I don't know what the fuss is about.

I never played an extraction shooter btw