Open gleyfer opened 6 years ago
Dota uses SDL for cursor handling so assigning to the SDL dev, although I think there's a decent chance this is a macOS issue that Apple would need to look at.
Agreed that this may be a MacOS issue, but for the time being, it may be worth to disable the cursor scaling by default or set the scale to 100% by default for MacOS unless the user is using a hiDPI resolution (4k).
I happened to find this completely by chance (the cursor was huge and I disabled the scaling/set it to 100% and then also noticed, hey the game runs really smooth now and was laggy/stuttery before). Someone else may not be so lucky.
Your system information
Steam
->Help
->System Information
) in a gist:https://gist.github.com/gleyfer/907c5affccd4bcf6485e13bb2ff65221
Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.
On a Macbook with retina display, the default option in settings is to "Automatically select cursor size". What this does on a Retina display is it scales the cursor to fit a 4K resolution, even though I'm only running the game at the point resolution of 1440x900 (this is a bug for another day). However, more importantly, it absolutely tanks the performance of the game. It turns out that If I scale the cursor at all from 100% to anything higher, the performance tanks (FPS drops by 20-30, freezes, stutters, etc). If I uncheck the automatic scaling, and just set the scale to 100%, FPS is smooth, no more stutters, etc.
There definitely seems to be some bug or CPU related issue (perhaps cursor being scaled in software, etc) which is causing a pretty noticeable performance drop when cursor scaling is used.
Steps for reproducing this issue:
EDIT: Just want to add that the gist was taken with external monitors connected, but I was reproducing the issue with no external monitors connected and only the retina built-in display.