Pstrnil

u/Pstrnil


r/linux_gaming•

I’m running into some UI scaling issues on a 4k display and wanted to share what I’ve tried so far in case anyone has ideas how to fix it.

So if i run the game without any arguments, the UI is tiny and it makes it difficult to play.

First workaround, launch at 1920x1080:

gamescope -w 1920 -h 1080 -W 3840 -H 2160 -f -- %command%

Result: UI scaled properly, but the game is blurry.

Second workaround, set device scale factor to 2:

--force-device-scale-factor=2

Result: works, UI scales properly and high resolution, but now the UI flickers (not while playing, only in menus) and some UI elements are not working properly, for example i can't see anything when i expand dropdown m

20


r/buildapc•

https://pcpartpicker.com/list/CPwKMV

 

What is your intended use for this build? The more details the better.

Heavy focus on gaming. I also intend to at least try to make this a linux gaming rig, but I'm open to stick to windows 10 if it doesn't work out.

 

If gaming, what kind of performance are you looking for? (Screen resolution, framerate, game settings)

I would mostly use the PC hooked to a 4k TV, but I'm fine upscaling the game from 1440p or even 1080p, as long as I can get 60fps (stable performance is most important for me).
For settings in new games, I expect at least High. Ultra is a bonus.

 

Provide any additional details you wish below.

I'

112

r/Genshin_Memepact•

It can't be understated how much I want to >!cuddle!< Kirara.

 

Ever since I laid my eyes on her, back when she first leaked, I felt a tingling sensation in my >!tummy!<.

It was like a dream come true, the perfect character finally released? A true catgirl to surpass the other cheap imitations?

 

No more would I have to beat my >!abyss!< with Keqing by my side, now I could do it with Kirara's assistance, and it felt better than ever.

The first time I >!36 starred!< with her I felt like I was ascending to a higher plane of existance. Words alone can't describe the feeling.

 

The things I could do to her...

I could >!hold!< her petite body for hours at a time.

I could

13712

r/typescript•

Hello,
In this simple code I can't figure out how to get the error Object is possibly 'undefined' to go away.

I'm checking if groupedTimelogs[key] is an array before pushing on it, but inside the if statement TS still thinks that groupedTimelogs[key] could be undefined. Why?

I added noUncheckedIndexedAccess: true in my config but if it keeps bugging me like that I may reconsider it.

Thanks in advance.

[Playground link](https://www.typescriptlang.org/play?noUncheckedIndexedAccess=true#code/JYOwLgpgTgZghgYwgAgGIHsoFs5kgEwBVgsIAbdAc2QG8BYAKGWeTGDDIgC5kBnMKKEoAaRi2QQsABwoBPCBAByAVywAjaDxCqNUMSwTp83PgKGMAvo0YxlIBG3QhkpKJQjFSFSrwAUbLypeHgxsXAJPcioAbQBdAEpafUMQfmRKKHRlKQgiEiifHgAlCEMo

96

r/webdev•

From the research I did it seems like this is the wild west in the JS ecosystem.

There are some code generation tools around but most seem to be outdated or have problems. Some generate actual code files while some others generate the client at runtime.

I couldn't find a clear winner or a modern project that many people seem to consider the right way to go so I just want to know from other people experiences, what do you use? Is there a package you can recommend?

Any tips are welcome as this is the first time I have to work on something like this, thanks.

33

r/learnjavascript•

Hello,
There's something I don't understand about the optional chaining operator

document.body.nextElementSibling.classList.contains('test')
// same as: null.classList.contains('test')

This code throws the following error because nextElementSibling is null:

Uncaught TypeError: Cannot read properties of null (reading 'classList')

 

If i change it to this, the error goes away:

document.body.nextElementSibling?.classList.contains('test')
// same as (?): undefined.contains('test')

 

But this is what I don't get, shouldn't the above code still throw an error because classList is (presumably) undefined? And so I would expect this error inste

45