nipkownix / re4_tweaks

Fixes and tweaks for the "UHD" port of Resident Evil 4
zlib License
341 stars 33 forks source link

Raw Mouse Input problem #460

Open FutonGama opened 1 year ago

FutonGama commented 1 year ago

Validation

Describe your issue here (drag+drop ZIP to attach it)

I noticed if have many enemies on screen if have the RawMouseInput option enable, Leon aim don't work well. The sensibility get compleatly broken and rotate camera too.

emoose commented 1 year ago

have many enemies on screen

Is that with game going under 60FPS / slow-mo? I guess that might affect our aiming code.

Maybe we could see if input code can be tweaked to use the actual deltatime, instead of fixed one which would cause that...

emoose commented 1 year ago

Could you check if this build is any better for you? dinput8.zip

FutonGama commented 1 year ago

Is that with game going under 60FPS / slow-mo? I guess that might affect our aiming code.

I was testing some things and I put a colossal amount of enemies on the screen, but I noticed that if there are too many, these problems happen but only with RawMouseInput activated. I didn't notice any slow motion. Edit: I'm with lag but not feels like slowmotion for me.

I will test now this build. EDIT: I tested, same thing. But let me especify some things. This only happens with MANY enemies on screen, i'm talking about 100 enemies +. I tried here with 150 enemies and the game feels impossible to move the aim, its like the sensibility is get down to 1 and if i rotate the camera to out of the enemies the game aim backs to normal until i back to the enemies again. I was doing some tests to my mod related to the game memory and i noticed that on the middle of tests. If i toggle RawInput to off the aim immediately backs to work fine. And btw RawInput is much better than the original one and i noticed that problem and even if this don't happen commonly cause i think no one uses so much enemies on screen at same time .. i think .. i think is good take a look. Count on me for tests when need.

I will record a video. EDIT: Here is. https://youtu.be/7yzuwBS7MwI You can see the difficulty to aim when looking to enemies. And is difficult to use mouse turn too.

emoose commented 1 year ago

Ah darn, that's odd... could you check in Globals window and see what the engine load % shows when you look at them? Also wonder if disabling ESP makes any difference there?

Only guess is maybe so many enemies could be making something go out of sync, not really sure why it would work fine with rawinput disabled though.

Any chance you have an ESL that I could test with?

FutonGama commented 1 year ago

Ah darn, that's odd... could you check in Globals window and see what the engine load % shows when you look at them? Also wonder if disabling ESP makes any difference there?

No diference without ESP. Well, about the globals, ... my CPU and GPU is getting crazy, oh my god! When i look to the enemies the values is trying to get over 100% for both LOL. They keep changing back to 100% in a half of a sec. Well, here my configuration. i9 10900, RTX 2080 Super 8 GB, 32 RAM, 5 Terabyte HD and 1 TB SSD NVME, My main monitor is 240 hz 1080p and i'm playing with that refresh rate using the tweaks high hz option. The other monitor is 60hz 4K. So its not common i have some fps issues even with this complicated old game but i never noticed how much this uses of my PC, LOL. Thats very strange cause i don't know why i'm not having slow motions, at least don't feels with it and this is not something you guys have done on tweaks for decrease the slowmotion? changing that for sturtering or something?

Emoose i have taken a good look with that informations and because of the update rate is difficulty to see but feels like is getting 100-110% CPU and 100-140% GPU .. craaazy If i take the screen out of the enemies like on the video when i aim and the aim works, my CPU is using 47-50% and 100% GPU. I don't understand too much about this, so is with you.

Only guess is maybe so many enemies could be making something go out of sync, not really sure why it would work fine with rawinput disabled though.

Any chance you have an ESL that I could test with?

r111 with 150 Enemies for test.zip

Go to r111 map. I have set 150 enemies, if you need decrease or increase and need help i can help.

FutonGama commented 1 year ago

@emoose after i played my mod i realised its unplayable because of this problem, the more enemies, the slower my aim is, I didn't know that it would harm my mod because I don't put many enemies spawned at once, but it's unplayable with only a few enemies on the screen, it gets even more difficult if the enemies are special , such as regenerator, novistador and others.

FutonGama commented 1 year ago

If you wanna test go to r320 area and turn on SAT and EAT display and the game will give that problem too cause is too heavy. Of course this is just for testing.

image