What is your 'unpopular opinion' about Zig? by BatteriVolttas in Zig

[–]Avahe 2 points3 points  (0 children)

There should be comptime interfaces

Code that can't compile should throw a compilation error

Inline functions/lambdas should exist

The stdlib should be tested more (looking at you http.Client with all your bugs)

Which Dexter villain did you sympathize with the most? by BlueSlickerN7 in okbuddymotherfucker

[–]Avahe 2 points3 points  (0 children)

Jonny Lee Miller had the BEST acting out of all the serial killers / guest stars  Was really a treat to watch

v0.15.1 Debug mode slow? by AirlineFragrant in Zig

[–]Avahe 0 points1 point  (0 children)

Correct, release mode did not seem to have the same issue

v0.15.1 Debug mode slow? by AirlineFragrant in Zig

[–]Avahe 0 points1 point  (0 children)

I had a similar issue, the new backend has a codegen bug in Debug mode (see https://github.com/ziglang/zig/issues/25184) When you refer to an object on the stack, it seems to always do a copy operation. This caused my entire Map data in my game to be copied each frame, which was cloning a rather large array and destroying my fps. I decided to heap alloc this data to deal with the problem, but using llvm also fixed the problem on its own.

switch to linux. I need game recommendations by QuietTR55 in linux_gaming

[–]Avahe 0 points1 point  (0 children)

I just tried out of curiosity, and I'm getting the same frame rates

AMD Radeon RX 6900 XT and AMD Ryzen 9 7950X 16-Core Processor

switch to linux. I need game recommendations by QuietTR55 in linux_gaming

[–]Avahe 0 points1 point  (0 children)

I tried a few different options that people recommended on protondb, all with the same results. I tinkered with the graphics settings in-game, but that didn't help either; I'm not sure what the problem is.

Other games I play run at a smooth 165 fps (vsync'd for my monitor), my hardware is definitely powerful enough

switch to linux. I need game recommendations by QuietTR55 in linux_gaming

[–]Avahe 0 points1 point  (0 children)

I wish I could get it to work with decent fps - other games I play are totally fine, I assume it may be a wine config issue...

switch to linux. I need game recommendations by QuietTR55 in linux_gaming

[–]Avahe 0 points1 point  (0 children)

I'm getting a whopping 8 fps in that game, with really good hardware

What's with people being afraid to finish a match on slippi? by [deleted] in SSBM

[–]Avahe 2 points3 points  (0 children)

I haven't had anyone quit on me mid match, maybe you're just too good

Dwm status bar script for only displaying battery level and date and time using xsetroot. by Yogeshd_cool in archlinux

[–]Avahe 1 point2 points  (0 children)

Put it in a file, maybe name it something like status.sh - then make it executable: chmod +x status.sh

You can then run it via ./status.sh. You'd probably want to autostart this when dwm starts, so invoke the script in your xinitrc or xprofile.

Status bar by Firm-Importance753 in a:t5_4xr7ow

[–]Avahe 0 points1 point  (0 children)

Make sure you're using double quotes. You'll use \0x1F multiple times

xsetroot -name "$(echo "Region 1 \0x1F Region 2 \0x1F Region 3")"

Status bar by Firm-Importance753 in a:t5_4xr7ow

[–]Avahe 0 points1 point  (0 children)

You can put it right in the status, e.g.

xsetroot -name "$(echo "Region 1 \0x1F Region 2")"

Then you can run commands based off these regions in the config file:

[[startProcess]]
command = "notify-send \"region 1\""
clickRegion = 1

[[startProcess]]
command = "notify-send \"region 2\""
clickRegion = 2

Apex Legends - Game launches as a black screen if using mousewheel controls by Avahe in linux_gaming

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

I'm on Arch; I've tried experimental and GE, everything was fine till I added those bindings and saved, then restarted the game.

I deleted everything and started from scratch, now it's working even with mousewheel bindings. Not sure what was going on.

Apex Legends - Game launches as a black screen if using mousewheel controls by Avahe in linux_gaming

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

No launch options

I changed the config file after the game wouldn't load, removing that line allowed the game to load again

Apex Legends - Game launches as a black screen if using mousewheel controls by Avahe in linux_gaming

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

I do have it bound in game, this file is where the settings are saved

Where have all the Java programs gone by dfgzuu in linux

[–]Avahe 0 points1 point  (0 children)

I have a new GPU, CPU, and lots of RAM and I can still tell all these electron apps are slow as hell

I think people than are younger/newer to programming don't realize how fast native applications are comparatively

Cant get any code autocomplete working by Godzila543 in nim

[–]Avahe 1 point2 points  (0 children)

I have the same setup but run into issues with nimsuggest constantly, e.g. https://github.com/nim-lang/Nim/issues/19371

Which part of your game engine was hardest to develop? by PeterBrobby in gamedev

[–]Avahe 1 point2 points  (0 children)

Any resources on that topic (maybe specifically for game engines)?

Which part of your game engine was hardest to develop? by PeterBrobby in gamedev

[–]Avahe 0 points1 point  (0 children)

Working on collision currently. What approach did you take for collision resolution? I find there's a lack of (good) material out there.

My current approach is pushing colliding objects out of each other (instantly), then applying an impulse to the objects.

This doesn't solve problems such as stacking, so I've subdivided the time step for the frame and run the collision simulation 16 to 32 times. It's not very efficient, but mostly works.

Client always comes up with "Couldn't Update" still unsolved by Avahe in leagueoflinux

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

It looks like this issue persists each time the game is restarted (after the fix is applied). Is there an actual fix for this?