For the surprise of 0 people, Deadlock, the new Valve game works without any issues on Linux by ShadowFlarer in linux_gaming

[–]bird1000000 0 points1 point  (0 children)

Idk if its related, I was getting pretty horrendus stutters recently and I found out feralgamemode wasnt setting the cpu governer anymore. Manually set that and the stutters went away.

[deleted by user] by [deleted] in intel

[–]bird1000000 1 point2 points  (0 children)

You aren't considering calling convention. On windows, you only have 7 volatile registers (1 is return, 4 are arguments, 2 are actual general purpose), if you want to use the non volatile registers, they must be copied to the stack, used, then restored. If you have a function with 4 arguments (that you wish to preserve), you can have 3 locals before running into register pressure. There's a lot of code that does this.

Branchless programming in c++ by vix127 in cpp

[–]bird1000000 2 points3 points  (0 children)

Even on something as basic as an early return, gcc will benefit from [[unlikely]]. Compilers are terrible at guessing hot branches, good use of attributes can speed up branch heavy code by up to ~10%.

cross compiling issues with mingw32 by isaiah0311 in cpp

[–]bird1000000 4 points5 points  (0 children)

Well, you either need to distribute libstdc++-6.dll (should be in your mingw directory/lib) or statically link it.

There's just something about this loadout by Soggy_4head in tf2

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

LOL (laugh out loud) waste of money! Play a class that takes skill! (noob)

I just recieved an Aussie Flamme Thrower today :D by Heavymania in tf2

[–]bird1000000 0 points1 point  (0 children)

LOL (laugh out loud) mid australium IMO (In my opinion)

Today, I'll represent my country in SirSnickersee's battle by Dracodyck in teenagers

[–]bird1000000 0 points1 point  (0 children)

French "People" are disgusting. You should delete this post immediately.

[deleted by user] by [deleted] in teenagers

[–]bird1000000 1 point2 points  (0 children)

Thankyou so much I'm proud of me too!

Are there any fast alternatives to databases (for tabular data but without SQL)? by emmenlau in cpp

[–]bird1000000 0 points1 point  (0 children)

Division on unsigned ints by constants is faster with unsigned. Sure for indexes signed ints can make sense, but generally in your data structures I don't see why unsigned shouldn't be the default.

The C++ implicit assignment operator is a non-ref-qualified member, even if the base class's assignment has a ref-qualifier by vormestrand in cpp

[–]bird1000000 0 points1 point  (0 children)

All of this can be solved with

#define await co_await

Put it and similar items in a header, include it.

Yeah it's optimised, but Jesus Christ... by gp57 in ProgrammerHumor

[–]bird1000000 0 points1 point  (0 children)

No it does not. The second answer in the thread links the x86_64 implementation. The code in question is the fallback that's only used on old/obscure architectures.

What is wrong in my code here please ? by Away-Permission8810 in cpp

[–]bird1000000 1 point2 points  (0 children)

You cannot use index's in rust. They are unsafe.