边缘世界 RimWorld

边缘世界 RimWorld

45 个评价
Mouse Drag Lag Fix (Linux)
7
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
467.240 KB
2023 年 6 月 7 日 上午 10:22
8 月 7 日 上午 9:14
6 项改动说明 ( 查看 )

订阅以下载
Mouse Drag Lag Fix (Linux)

描述
Version 1.4 - Updated to RimWorld 1.6

Current problem reports:
- Breaks camera controls, dragging anyhow but up on Windows;
- Breaks Achtung! drag functionality.

Fixes lag from mouse dragging (hold + move) mostly reported by Linux RimWorld players (do not use this mod for Windows, assume it breaks something). Bug and incompatibility reports are extremely appreciated.

The issue is that Unity calls RimWorld's GUI to update whenever the mouse (or touchpad) reports a new position while dragging, thus mouses that report their movement more often thus cause more events, more redraws and thus more lag. This fix is to patch RimWorld's Root GUI to update only from one of the mouse drag event for every mouse-down or redraw event.

This is a band-aid fix and the issue cannot be fully fixed on RimWorld's side as Unity offers no control over the event system, and my attempts to jerry-rig control break the base Unity GUI because of its assumptions about the event system.
34 条留言
Pixeljaeger 11 月 16 日 上午 2:50 
You, good sir, are my hero!
Ever since i started using RimHud i had this issue. And i'm too stubborn to play without it.
You LAG-Fix is now even more essential to me!
Rightimar 7 月 15 日 下午 2:16 
my fps savior
Lefty Flip 7 月 15 日 下午 12:55 
Works for me on 1.6
Damglador 7 月 13 日 下午 8:22 
Oh man, this mod is a bless. Thank you!
Saiphe 7 月 12 日 下午 4:15 
Btw if you run the game native - you need this mod, if you use proton GE you dont need this mod.
Chibi Shinku 7 月 12 日 上午 5:56 
Thank you so, so much for this. The world map lagged so bad for me until I used this. Thank you!
Aleios 7 月 11 日 下午 6:33 
I can't believe this is still necessary. Unity engine really is a piece of heaving garbage.
Agustinso 6 月 15 日 下午 12:54 
For anyone wondering, this seems to be working in 1.6. At least on my end
Almantuxas  [作者] 5 月 3 日 上午 10:39 
@Jaydak hmm, that sounds like I should try and find a way to affect every UI element with only a single patch, since people did mention scroll bars aren't affected, but that'll probably happen once I start playing RimWorld again and become annoyed.
Jaydak 5 月 3 日 上午 12:12 
This mod works wonderfully to alleviate most cases of the mouse drag issue! What a lifesaver, thank you!

Just want to share that the mouse drag issue persists on windows created by mods (Dubs Mint Minimap & Moody are two examples).