-
-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very long loading of the maximum "zoom out" level in 4K resolution #6566
Comments
danielarmstrong wrote:
This comment was imported from FlySpray: https://bugs.openttd.org/task/6566#comment14833 |
I am not sure whether this is a bug, or works-as-intended. But we need to look into this to be sure :) |
As author of this report, I start to wait. |
Sounds to me like an issue with the size of the visible map area. Is the delay the same for different kind of maps, e.g. comparing a very busy one with many towns and vehicles (trains, road vehicles,...) and a "idylic" one with few villages and mostly country side? My suspicion is: there's so many sprites to order, that it simply takes a load of time - longer than desirable. |
I think this is fixed/improved with #6911. |
I don't think this is fixed - when zooming out to the maximum zoom level OpenTTD still freezes for 3-5 seconds for me. Running latest JGRPP 0.32-rc5. |
I would venture a guess that 3-5s is entirely expected - and a lot better than the originally reported 20-30s. 4k is a lot, and OTTD doesn't have any sort of GPU acceleration. Please try with standard "vanilla" OTTD and give more information (map size, computer specs) |
I mean, there are a lot more trees than buildings... but it's possible (probable) there's some inefficiency somewhere that could be looked at |
Apologies for bumping a closed issue, but I'm also getting this on my 2k monitor. OTTD freezes for about 5 to 10 seconds when zooming out to the farthest zoom level. I'm using vanilla 1.10.0-beta2 and have an AMD Radeon video card... OS is Windows 7. Map size is 512x512. |
Alright then, let's reopen and see if anyone can reproduce anything significant |
The earlier referenced PR was reverted, I think. It broke sprite sorting in some edge cases, causing flickering and weirdness with some bridges and more. So performance should be back to what it was when this issue was first opened. |
I reproduce situation of @james5922 in the same version (1.10.0-beta2), but in 3840x2160 resolution: map size 512x512, "5000" number of towns and "High" of industries, with trees and no water (rivers and seas) = constant ~10 sec. freeze when zooming out to the farthest zoom level. |
PR #7962 should significantly improve this. |
With reference to: https://github.com/OpenTTD/OpenTTD/blob/master/src/viewport.cpp#L1731 |
…hunking This caused drawing areas larger than 2097151 pixels at 8x zoom to not be subdivided into smaller chunks as required. This resulted in pathological performance issues in the sprite sorter.
…hunking This caused drawing areas larger than 2097151 pixels at 8x zoom to not be subdivided into smaller chunks as required. This resulted in pathological performance issues in the sprite sorter.
Qwest8K opened the ticket and wrote:
Reported version: trunk
Operating system: Windows
This issue was imported from FlySpray: https://bugs.openttd.org/task/6566
The text was updated successfully, but these errors were encountered: