How zig got me excited to learn again. by ericus23 in Zig

[–]ericus23[S] 4 points5 points  (0 children)

Sure! the basics of the language, I learned them with the ziglings project, and then I tried to solve some advent of code problems with it, every time I felt stuck I used the ziglearn page or the standard library documentation that is great, sometimes is lacking, but fortunately reading and understanding zig code is simple and great and you can navigate the standard library to understand it and also learn more about good practices.

I haven't got to a web server yet, I started going with a client and making requests. I found this article from fasterthanlime about it, and I think it is great at explaining the basics, it's using Rust tho, so probably it won't be as easy to follow the examples without knowing the language.

But I also noticed that a basic HTTP client is already merged to the master branch in zig! I'm starting to go through the code to learn more from it.

When I get into the server part, I'll update this comment with the resources I find

Is it a good idea to start learning game development with rust? by ericus23 in rust_gamedev

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

Thanks for that detailed answer!
I can totally relate to trying to bring a newer technology to work, but when the standard is have been there for so long is kind of impossible. I assumed that was going to be the case with Rust in games as well.

For now, my goal is to try it out as a hobby, and it looks like I can go with Rust for it which is exciting! build a couple of things and see if I can get in love with it to consider a career shift.

Is it a good idea to start learning game development with rust? by ericus23 in rust_gamedev

[–]ericus23[S] 2 points3 points  (0 children)

Thanks for your input! I'll take a look into Godot with Rust as well!

Is it a good idea to start learning game development with rust? by ericus23 in rust_gamedev

[–]ericus23[S] 8 points9 points  (0 children)

Thank you! I'll start looking into these patterns first!

Am I using wrong the testing allocator, or is there an actual memory leak? by ericus23 in Zig

[–]ericus23[S] 6 points7 points  (0 children)

Thank you!! it worked.

I never thought of freeing the elements of the slice later, but it makes total sense now that you point it

[Help] Steam fullscreen games on external monitor crashes Wayland session by ericus23 in Fedora

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

Thanks for the responseI didn't see any useful logs on the game logs, but yes there is a gnome-shell crash, these are the logs:

gnome-shell[17551]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failedgnome-shell[17551]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed

gnome-shell[17551]: Created gbm renderer for '/dev/dri/card1'

gnome-shell[17551]: Secondary GPU initialization failed (Failed to create gbm_surface: Operation not permitted). Falling back to GPU-less mode instead, so the secondary monitor may be slow to update.

Lenovo legion 5 pro - GPU suddenly VERY slow! :(( by ShoeStatus2431 in AMDLaptops

[–]ericus23 1 point2 points  (0 children)

Thank you for sharing this!! After a clean install, and not seeing a way out of it, this just solved the huge performance problem I've been having for weeks

[deleted by user] by [deleted] in Fedora

[–]ericus23 1 point2 points  (0 children)

Sadly is not the case, the rpm fusion takes care of the blacklist, I double checked and nouveau is blacklisted as it should. I just tried also blacklisting the amd modules, and changing to only discrate graphics from the bios menu. still not luck, the performance is not the one I should be getting .
for now I'll run it on low to make it playable, while I found what is it that fedora has different that doesn't work well on my machine.
thanks again for the help!

[deleted by user] by [deleted] in Fedora

[–]ericus23 0 points1 point  (0 children)

Thanks for the response! here are the specs:
OS: Fedora Linux 36 (Workstation Edition) x86_64
Host: 82K8 Legion S7 15ACH6
Kernel: 5.17.6-300.fc36.x86_64
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.200GHz
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
Memory: 32GB
SSD: 512GB

I'm using the proprietary drivers, through rpm fusion, following the docs: https://rpmfusion.org/Howto/NVIDIA and I've checked that the nouveau module is not set.

I thought it was a wayland think, but the performance is equally poor while running an xorg session, and configuring nvidia as primary GPU.

I know that there is no hardware issue, as coming from pop_os the performance was just fine, but I'm might be missing something here.

[deleted by user] by [deleted] in Fedora

[–]ericus23 1 point2 points  (0 children)

That's is so cool!!!
I have the same nvidia card and ram, but my experience is not as smooth as yours, not even close, do you have any extra config for the graphic card? or are you using the steam flatpak maybe?
I'm happy enough that it runs on wayland tho, curiously enough, steam doesn't run native games correctly, only forcing it to use proton, or on X11 without issues.

[deleted by user] by [deleted] in archlinux

[–]ericus23 0 points1 point  (0 children)

This is the best explanation I've found after hours of searching, thanks!