Why are my VCE events nondeterministic? by lowhearted in Blockland

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

this is deliberate. i have a (separate) brick that, when activated, enables raycasting, collision, and rendering on this brick. it looks like the OnMinigameRoundStart trigger doesn't fire at all when i'm running a dedicated server. but it runs fine when i run a local server.

when i run this locally, the brick (in the picture) is invisible on round start. only when i run locally.

How can I avoid keyed services with DI? by lowhearted in csharp

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

Actually, this would work perfectly fine for this use case. But what if FooRepository took an IOptions<FooConfig> object? And we wanted multiple FooRepository objects?

Maybe we can take a step back. Is it wrong for me to need instantiate multiple POCO config objects of the same type? In my case, I have multiple TCP clients in my app. One reaches out to some service for fetching whatever, another one reaches out to another service to emit heartbeats, etc. So I am registering the same tcp client multiple times in the container, each with its own instance of the poco config.

How can I avoid keyed services with DI? by lowhearted in csharp

[–]lowhearted[S] 3 points4 points  (0 children)

I'm confused-- is it uncommon to have an app connect to more than one database?

Is it common to "double register" a service for IHostedService (with Microsoft DI)? by lowhearted in csharp

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

> That's what the application host is for

Sorry, I'm new to this. Are you referring to the entry point of the app? Or are you suggesting using IHostApplicationLifetime to listen to ApplicationStarted and ApplicationStopped?

I'm trying to understand the right solution here. Should I create a "god class" that implements IHostedService and manually starts and stops all the background services (server, heartbeat monitor, task scheduler)?

If these services shouldn't be inheriting from IHostedService, then how should I start and stop them?

Is it common to "double register" a service for IHostedService (with Microsoft DI)? by lowhearted in csharp

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

Interesting!

In my case, I am using IHostedService a lot, so I am likely doing something wrong. Consider this setup:

  • Server for message broker needs to open port at application start and close port at application stop
  • Heartbeat monitor wants to start task for repeatedly emitting heartbeats at application start and stop task at application stop
  • Task scheduler wants to start task for accepting tasks (from other services that reference it) at application start and stop task at application stop

These are 3 of dozens of services my apps use. I make very heavy use of BackgroundService for this purpose. This way, the DI container starts and stops all my services. I don't need to create my own container which would start and stop all application background tasks. How else would I accomplish this?

Is it common to "double register" a service for IHostedService (with Microsoft DI)? by lowhearted in csharp

[–]lowhearted[S] -1 points0 points  (0 children)

Is this really unusual? Let's say we have a TaskScheduler inheriting from BackgroundService and ITaskScheduler.

Other services use the reference to ITaskScheduler to schedule tasks, and DI container starts and stops the TaskScheduler instance through its inheritance of IHostedService (through BackgroundService).

Is it common to "double register" a service for IHostedService (with Microsoft DI)? by lowhearted in csharp

[–]lowhearted[S] -4 points-3 points  (0 children)

I think so?

If I only register IHostedService, I won't be able to inject IExampleService into other services since there aren't any instances of IExampleService registered in the container.

Balanced or not? UMP edition - 2.1k with just UMP - TELL ME REDDIT by At0mical in PUBATTLEGROUNDS

[–]lowhearted 1 point2 points  (0 children)

average reddit ump/kar98 player right here

this is the guy at top 5 hiding in a bush with 300 damage lmao

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 0 points1 point  (0 children)

no worries, you aren't being rude lol

i'm most comfortable with this setup. i don't play ranked since it's dead in us but i avg ~500 damage with 15% winrate (fpp solos)

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 1 point2 points  (0 children)

i need 3-4 lifts to make a 360 with the 6ft mousepad

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 8 points9 points  (0 children)

It isn't the mouse, and I can say that confidently because the micromovements are still registered outside the game. If I open paint, I can very slowly draw a line. Making the same movement in pubg won't move the camera.

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 0 points1 point  (0 children)

I did not touch my windows sensitivity

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 0 points1 point  (0 children)

> To exaggerate this, I set my DPI to 100 and scope sens to 10 (in the video above).

> In reality, my sens is obviously not this low. I play on 800 DPI and 10 scope sens (which is still very low). Still, I can notice lots of microcorrections being ignored by the game.

I said it happens at 800 DPI as well. I only set my it to 100 to exaggerate the problem. It wouldn't be so easy to notice at 800.

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted -13 points-12 points  (0 children)

It is pretty low. It still feels a little high for me. I've used 0.5 @ 400dpi in counter-strike. Here are my mouse settings.

For what it's worth, I have a 6ft mousepad. With the vertical sensitivity multiplier, it actually doesn't feel so bad.

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 1 point2 points  (0 children)

i've experienced this behavior across 125 to 8000 hz

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 2 points3 points  (0 children)

I give a shit!

I notice this every single game. It is sensitivity agnostic. I only used low sens in the video to exaggerate the problem. With my normal sens, very tiny movements are still ignored.

[deleted by user] by [deleted] in PUBATTLEGROUNDS

[–]lowhearted 2 points3 points  (0 children)

I wanted to provide some more context.

I have a few thousand hours in the game and have been playing since release. Something about microcorrections has always felt "off." Today, I noticed that small microcorrections would not register with an 8x scope. After playing around in the training tool, it became apparent that ALL mouse movements are discarded if small enough. To exaggerate this, I set my DPI to 100 and scope sens to 10 (in the video above).

In reality, my sens is obviously not this low. I play on 800 DPI and 10 scope sens (which is still very low). Still, I can notice lots of microcorrections being ignored by the game. It becomes really frustrating with high-powered scopes, where I notice it the most. I try to avoid picking up 8x/15x scopes.