View Issue Details

IDProjectCategoryLast Update
0026673AI War 2Bug - OtherMar 9, 2022 12:13 pm
ReporterMac Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Fixed in Version4.003 A Bit Too Chromatic Horrifying 
Summary0026673: Zooming Sometimes Zooms All The Way In Instantly
DescriptionAnother thing that's been around for as long as I can remember. I'm not sure what causes it, but at seemingly random intervals, if you happen to be zooming in on the mouse wheel, it sometimes goes ALL the way zoomed in instantly. I know this is not a mouse problem, as this has happened on two different mice, and has never once happened outside of this game.
TagsNo tags attached.

Activities

Chris_McElligottPark

Mar 9, 2022 12:07 pm

administrator   ~0065304

What is probably happening is that there's an extra long frame for some reason (garbage collector, whatever), and so it's reading a delta time that is way larger than it should normally be.

Chris_McElligottPark

Mar 9, 2022 12:13 pm

administrator   ~0065305

Thanks!

* For purposes of movement and panning, the camera now clamps its maximum "frame delta time" to be the equivalent of 20fps, or a twentieth of a second. If there is a very large single frame (garbage collector, waiting on disk, whatever), it will thus no longer cause your zoom to shoot all the way in because of getting a very large d/t for a frame where you were rolling the mouse wheel.
** The one potential downside of this is that if someone legitimately has ongoing performance that is worse than 20fps, their mouse inputs will be slowed to whatever the ratio is to 20fps. So for example if someone had ongoing 15 fps, their mouse inputs would be sluggish at 75% of the normal speed. At 10fps, it would be sluggish at 50% of normal responsiveness.
*** Since I'm not aware of anyone routinely running that low (and anything at 20fps or higher will perform with normal responsiveness), this seems like a safe thing to do.
*** I could have clamped this at 10fps, but part of the thing is that some mice have quite a sensitive wheel that can be rolled or spun very far in a short amount of time, and a tenth of a second will probably still allow for more zoom-in at once than is desirable. That's one of the main reasons I haven't done anything about this issue despite it being around since 2017.

Issue History

Date Modified Username Field Change
Mar 9, 2022 12:34 am Mac New Issue
Mar 9, 2022 12:07 pm Chris_McElligottPark Note Added: 0065304
Mar 9, 2022 12:13 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Mar 9, 2022 12:13 pm Chris_McElligottPark Status new => resolved
Mar 9, 2022 12:13 pm Chris_McElligottPark Resolution open => fixed
Mar 9, 2022 12:13 pm Chris_McElligottPark Fixed in Version => 4.003 A Bit Too Chromatic Horrifying
Mar 9, 2022 12:13 pm Chris_McElligottPark Note Added: 0065305