LambdAurora / LambdaControls

A minecraft mod which adds better controls and controller support.
MIT License
67 stars 20 forks source link

Right stick movement PS3 controller #11

Closed Dragonracer1973 closed 4 years ago

Dragonracer1973 commented 4 years ago

Describe the bug First off Love this mod as I initially played minecraft on the PS3. I have a lower end system and after installing the mod (along with others) I notice a sever bit of input lag for the right anaolog stick. Cursor still works good in game while running the instance, but the controller is laggy.

Dragonracer1973 commented 4 years ago

Oh I am using version 1.0.1 forgot to add that srry

LambdAurora commented 4 years ago

Hello, does the bug is still there with version 1.1.0?

Dragonracer1973 commented 4 years ago

Updated to version 1.1.0 and the issue does persist.

LambdAurora commented 4 years ago

Ok, I'll look into it but I need more information.

Is your average frame rate low? (If you can give me a range it would be perfect)

If you can, I would like a video to see the problem. ^^

Dragonracer1973 commented 4 years ago

As I stated previously, my pc is a tater (integrate everything) I have tried making a video of it, but my Minecraft instances are usually capped at around 30 fps. The video turns out like crap, I will include it, but trust me when I say, I have a usual smooth transition with the mouse, and the controller stutters/locks into position

controller test.zip

LambdAurora commented 4 years ago

So the average FPS is really what I needed so, now I am able to reproduce the problem, which is already noticeable at 60 FPS. In the current state of the code, I'm not sure how I can fix this.

I'll try fix this as soon as possible but that camera control is really hard to implement with Minecraft's spaghetti code.

Dragonracer1973 commented 4 years ago

I understand, thanx for the hel[p, not that I know anything of coding, but you cannot simply map the mouse movement code directly to the right analog stick??

LambdAurora commented 4 years ago

Well, that was the first version of the code and it was really bad.

The problem is the camera update depends of FPS and I can't inject anywhere the code else it won't work at all. I'm not sure if I can fix it alone.

LambdAurora commented 4 years ago

Hello, this will be fixed in the next update as I figured out the code to make rotation persistent!

With 30FPS it still feels laggy but it's not really possible to do better.

It will be in the version of the mod for 1.16, if you absolutely want a backport of this feature to 1.15 please tell me.

LambdAurora commented 4 years ago

Should be fixed in 1.16 (1.3.0) and in 1.15 (1.2.0)!