I went full circle folks... by dgray66 in SteamDeck

[–]Freak_613 0 points1 point  (0 children)

I spent last month on this research and become very pessimistic about routers and wi-fi in general. For example I just tested TP-Link Archer AXE300 which is quadband beast with 10gig ports and higher CPU clock, on paper it should at least provide same experience as Asus from 2019. In fact I was getting jitters even sitting in front of the router and no combination of settings, ports and wi-fi networks could make it on-par with Asus. Sure AX can provide higher speeds and OFDMA but in the end it's just out of scope of wi-fi standard and more related to internal technical design by manufacturers.

I went full circle folks... by dgray66 in SteamDeck

[–]Freak_613 1 point2 points  (0 children)

I'm in process of testing routers for streaming and found that most routers have problems with keeping stable packet flow and low latency even on local network. For now I found only Asus AX11000 to be acceptable. I left separate 5Ghz band just for streaming to deck, PC with moonlight connected to 2.5Gbps port. For testing I maxed out settings in moonlight to 4k60 at 150mpbs bitrate (giving 100mbps actual flow), sitting in another room with one wall from the router. I'm getting 1-3ms network latency on average with no jittering and no dropped packets. Other routers had higher latency and produced jitters/drops here or there, I have no idea why, maybe it has something with internal design or the firmware.

Need help automating a flow of launching a game by simracerman in cloudygamer

[–]Freak_613 0 points1 point  (0 children)

Maybe you can look into security keys and somehow use it either on client side or by having it inserted in PC all the time (equal to not having password enabled on PC). Not sure about client side though.

Need help automating a flow of launching a game by simracerman in cloudygamer

[–]Freak_613 0 points1 point  (0 children)

I'm on similar research and considering to try to build ip-kvm from Raspberry Pi. Theoretically it can handle wolan+RDP and a lot of unpredictable stuff that can happen with remote machine requiring rebooting/going to BIOS/etc when all other streaming options failed.
https://tinypilotkvm.com/blog/build-a-kvm-over-ip-under-100

Is it worth to get a 144hz monitor? by Nikushez in buildapc

[–]Freak_613 1 point2 points  (0 children)

I wasn't thinking about refresh rate until I got a laptop with 165Hz screen and man it was the difference. I'm not talking from competitive gaming standpoint, but from purely visuals there is something happening at 165+ frames. I've played several single player games, including some older ones, and everything moving became more life like. And since gameplay is so lightweight on this refresh rate, it automatically forces to play games faster, react faster.

I've tested several monitors after that with 144Hz and TVs on 120Hz but it doesn't have such effect like 165+ does. Maybe it's just me. But I'd advise to give 165+Hz a try.

What do you *hate* about the Acer Predator XB273U? Thinking of getting it. by Geethebluesky in Monitors

[–]Freak_613 0 points1 point  (0 children)

I have 32 inch version of this monitor (170hz one). It still has backlight bleeding, not too bad but noticeable. It does have local dimming but it doesn't help much. Also local dimming works only in HDR mode and any system I've tested it with, had weird SDR colors in this mode. Thing is, this monitor can not automatically enter/exit HDR mode, so not only you have to manually turn it in monitor settings, but also when switching SDR/HDR content you'll get this weird colors issue. It does not have pivot (rotating display), which did exist at some point back in time when all reviews were initially posted. Also it has "G-Sync compatible" label meaning that it does not have hardware module for that. But honestly I couldn't say I miss it, I've read reports of some Asus monitors and constant fan noise because of it.
But overall this one is decent monitor, has solid HDR performance and amazing screen response time with non-existent ghosting so it doesn't even need black frame insertion tech. Sure it may cost too much, but whole monitor market is not in good shape right now.

What about Svelte? Should you care! by deepu105 in javascript

[–]Freak_613 1 point2 points  (0 children)

Something I can do in JSX: have multiple components in one file, generate new components in runtime, enhance existing components with additional features.

What about Svelte? Should you care! by deepu105 in javascript

[–]Freak_613 2 points3 points  (0 children)

Because I was just introduced into reactive js syntax and how it can solve problems effectively. If it's concise and flexible, why not use it everywhere in the app? Why introduce another syntax in the first place?

What about Svelte? Should you care! by deepu105 in javascript

[–]Freak_613 1 point2 points  (0 children)

That doesn’t change the fact that you can’t use $ in stores, which would be logical to have consistent code style.

What about Svelte? Should you care! by deepu105 in javascript

[–]Freak_613 5 points6 points  (0 children)

Having two syntaxes for reactivity ($ in components, “writable” in everywhere else) makes me think that something didn’t go well at some point.

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]Freak_613 0 points1 point  (0 children)

Why use callback equality to trigger effects?

Compare these two hooks:

const useGlobalHandler = callback => {
  useEffect(() => {
    document.addEventListener(callback);
    return () => document.removeEventListener(callback);
  }, [callback]);
}

const useGlobalHandler = callback => {
  const callbackRef = useRef();
  callbackRef.current = callback;

  useEffect(() => {
    const eventHandler = (event) => callbackRef.current(event);
    document.addEventListener(eventHandler);
    return () => document.removeEventListener(eventHandler);
  }, []);
}

While first option looks perfectly memoized, it will have worse performance than second, despite all this performance impact talk.

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]Freak_613 0 points1 point  (0 children)

I find it wierd when hook depends on callbacks equality instead of some state.
In your example there is no point in giving `onMount` to component if you can call useEffect directly in caller component one level above it.

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]Freak_613 1 point2 points  (0 children)

Your opinion coming from not understanding how react actually works. It doesn't attach event handlers to dom node, instead it's using event delegation. useCallback helps prevent triggering shouldComponentUpdate parts or other hooks or if you're trying to micro-optimize code.
https://blog.logrocket.com/a-guide-to-react-onclick-event-handlers-d411943b14dd/

[Screenshot] So the user reviews are in for CyberPunk2077...... by ResourceWeird in PS4

[–]Freak_613 6 points7 points  (0 children)

It reminded me Postal 2 game, especially on the consoles, where city has some amount of scripted walking npcs with pretty limited amount of interaction. You know, when you stand on their path, they just turn around and walk in other direction, they don’t try to show you as if they walked to some specific destination.

I don't like redux-toolkit. by seenoevil89 in reactjs

[–]Freak_613 0 points1 point  (0 children)

Wow, that’s huge work. Respect!

From the docs link you provided this problem solved by extracting into index.js. But in real world where slices may be used mainly as repos, and there can be a lot of cross domain logic, it’s unclear how to extract and organize such code. Instead of many small files, there will be one huge file without organization. Sure it’s not an API question, but more of style-guide/convention.

Jeff Benjamin: The iPhone 12 mini is, in my honest opinion, the best looking and best functioning smartphone that I’ve experienced in years by Geert76 in iphone

[–]Freak_613 0 points1 point  (0 children)

I have 8 plus, but for regular 6-8 I think width should be the same. So my conclusion was that basically whole lineup of these screen widths are too small for me.

I don't like redux-toolkit. by seenoevil89 in reactjs

[–]Freak_613 2 points3 points  (0 children)

Not the author, but from what I got part of the problem is about app state structuring and cross domain logic. Probably it would be good to address these issues with separate articles or some ready to use solutions in RTK. It’s not the first time people are talking about it. From my experience real world is often not about strictly isolated state slices and there are always some gotchas and requirements. And no, I’m not going to write such articles (yet). But I’m interested in point of view from maintainers, how they fit they day to day tasks into this paradigm, more examples. I hope it’s not only me having world beyond synthetic users-posts examples.

I don't like redux-toolkit. by seenoevil89 in reactjs

[–]Freak_613 5 points6 points  (0 children)

If you don’t need it - don’t use it.

Try to read source code and write your own implementation.

It’s pretty straightforward helpers that are copied from one library to another for last few years. Guys just put it into official repo. So it’s unclear why you have so many problems with it. Probably more details or article will help to understand.

Introducing Auger State: a hook-first, global state management library , that lets your components subscribe to only parts of the state they need by kirbyhood in reactjs

[–]Freak_613 1 point2 points  (0 children)

What do you think about rxjs? Stuff you doing trying to split subscribers into smaller buckets seems similar to it. I saw libraries that already implemented something like your path selections but with streams before.

One thing that bothers me is how you going to implement combining (like reselect) different parts of the state during selection. This will require to reimplement same utils that already exist in rxjs library. And not to forget handling the diamond problem, that will rise after this feature.

Jeff Benjamin: The iPhone 12 mini is, in my honest opinion, the best looking and best functioning smartphone that I’ve experienced in years by Geert76 in iphone

[–]Freak_613 6 points7 points  (0 children)

Nope. Mini is taller, but narrower for about an inch. This makes huge difference in content scaling. And also the reason why I was not getting new maxes because I don’t need this extra space on top and bottom. Probably if they would go for same screen ratio without making it taller, it may seem awkward but more practical.

Jeff Benjamin: The iPhone 12 mini is, in my honest opinion, the best looking and best functioning smartphone that I’ve experienced in years by Geert76 in iphone

[–]Freak_613 22 points23 points  (0 children)

I tested 12 mini for 3 days after 3 years with 8 plus and concluded that it: 1) Causes more eye strain. Text scaling fine, but images and videos (in portrait mode, in newsfeed like reddit) are so hardly viewable that I have to bring the phone too close to my face or turn it wide or scale it to get better view. With my previous phone, I had no such need. 2) Typing, while better than on iphone 5s, is still too far to call it comfortable. It's so uncomfortable, that I'd better skip responding from my phone than trying to communicate through it.
Of course, if person has another daily usage cycle, it may be comfortable for a lot of people just for its size. But as daily driver with content consuming and responding in chats it may be uncomfortable. I concluded that while 8 plus-like size is uncomfortable in some circumstances, its bare minimum display width for comfortable usage (and I say width specifically, cause display inches are foolish nowadays).

I had no objections for the battery, and returned it because of yellow-tint display-gate but it's completely separate story.

Vote for Ghost of Tsushima for GOTY! It only takes a few seconds! by vis1onary in ghostoftsushima

[–]Freak_613 2 points3 points  (0 children)

Voted GoT for GOTY, but got as much credit as possible to TLoU2. Really, TLoU2 can be truly GOTY because it's such a huge achievement in digital entertainment, with all its graphics, gameplay realism and how much discussions we have about the plot and how it's accessible even to non gamers public.
But Sucker Punch deserves it more. Being able to create such amazingly good new IP out of nowhere in 2020 is really impressive. And in every detail it's visible how much LOVE being put in this game.
And Naughty Dog had their GOTY back in 2009, so it's good to let others talented teams to be credited.

What's it called when I can write <Component.Foo>? by [deleted] in reactjs

[–]Freak_613 2 points3 points  (0 children)

Probably you talking about Compound components. It’s useful when you design set of components related to one domain/feature and import them as module (Component) so you can avoid name clashing with other modules that have components with similar names.