OS X and 1.9.0 version
Moderator: OpenTTD Developers
OS X and 1.9.0 version
Good afternoon,
My PC is Macbook Pro 2018 in base build and version openTTD 1.8.0 is working totally fine. As soon as I open the new 1.9.0 version the CPU usage is sky high. I have all software updated. Any tips?
My PC is Macbook Pro 2018 in base build and version openTTD 1.8.0 is working totally fine. As soon as I open the new 1.9.0 version the CPU usage is sky high. I have all software updated. Any tips?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: OS X and 1.9.0 version
does it work though? does it drop back after some time?keromudo wrote:Good afternoon,
My PC is Macbook Pro 2018 in base build and version openTTD 1.8.0 is working totally fine. As soon as I open the new 1.9.0 version the CPU usage is sky high. I have all software updated. Any tips?
What exactly is the difference in cpu usage (same savegame)?
what OS version do you use?
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: OS X and 1.9.0 version
i have the same problem
1.8 works fine, but 1.9 and all 1.9 pre-release versions works with freezes
Yes, it drop back after some time, but then can freeze again
If i change window size to smaller - it work better as i remember
Had no no much time experience with 1.9, because i always rolled back to 1.8 after each new 1.9
iMac (Retina 5K, 27-inch, 2017)
3,8 GHz Intel Core i5, 24 Gb 2400 MHz DDR4, Radeon Pro 580 8 Gb
Mohave 10.14.4
1.8 works fine, but 1.9 and all 1.9 pre-release versions works with freezes
Yes, it drop back after some time, but then can freeze again
If i change window size to smaller - it work better as i remember
Had no no much time experience with 1.9, because i always rolled back to 1.8 after each new 1.9
iMac (Retina 5K, 27-inch, 2017)
3,8 GHz Intel Core i5, 24 Gb 2400 MHz DDR4, Radeon Pro 580 8 Gb
Mohave 10.14.4
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: OS X and 1.9.0 version
It would be really helpful, if possibly one of you could grab the source code, compile it and get a backtrace as to see where exactly it hangs. We are somewhat missing people who can do that on OSX.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: OS X and 1.9.0 version
thank you for answer!
I think my skills are not enough for this (
but i will try download sources from github and compile them
maybe there is a built-in debug console or logs with standard build of openttd?
I think my skills are not enough for this (
but i will try download sources from github and compile them
maybe there is a built-in debug console or logs with standard build of openttd?
Re: OS X and 1.9.0 version
ok, compiled and run last version from github with make CXXFLAGS='-std=c++11'
same freezes...
it was a new game with default preferences and map size
what i need to say - after resizing window to a smaller size mouse cursor moves ok
but when resize to full (or near) size of screen - freezes occurs again
tested on 27'' 5k retina (default resolution)
same freezes...
it was a new game with default preferences and map size
what i need to say - after resizing window to a smaller size mouse cursor moves ok
but when resize to full (or near) size of screen - freezes occurs again
tested on 27'' 5k retina (default resolution)
Re: OS X and 1.9.0 version
You can also try CityMania patchpack. It's fully compatible with regular OpenTTD and has one significant performance-related change in 1.9.0.
Re: OS X and 1.9.0 version
sorry, no change_dp_ wrote:You can also try CityMania patchpack. It's fully compatible with regular OpenTTD and has one significant performance-related change in 1.9.0.
Re: OS X and 1.9.0 version
Oh, well, at least we know it's not #7247 then.dimaloop wrote:sorry, no change
Re: OS X and 1.9.0 version
Perhaps this is related to sdl. Have you tried with the sdl2 pr?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: OS X and 1.9.0 version
OSX does not use and build with SDL - unless you force it by the appropriate command line options on compilation. Last time I checked (some years ago) the user experience with SDL on OSX was worse than with the native cocoa drivers.Expresso wrote:Perhaps this is related to sdl. Have you tried with the sdl2 pr?
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: OS X and 1.9.0 version
no, by default is compile with CocoaExpresso wrote:Perhaps this is related to sdl. Have you tried with the sdl2 pr?
configure log:
-
- Engineer
- Posts: 8
- Joined: 05 Jul 2016 20:29
Re: OS X and 1.9.0 version
It's not OSX only. I just searched if someone else have problems with high CPU usage in version 1.9*. I noticed it on my Archlinux, after making and installing own package of version 1.9.1. I just continued previously saved game and CPU loads changed from 17-20% to 40-45%. After some time it picks to 80-100% (probably due to processor thermal reclocking). I lowered cargo distribution accuracy but without change. I noticed also immediate drop of animation smoothness. CPU load drops immediately when paused. IMHO there is something with drawing code.
Maybe it's related to this: With lots of vehicles, PerformanceAccumulator has a large performance impact itself
Maybe it's related to this: With lots of vehicles, PerformanceAccumulator has a large performance impact itself
Re: OS X and 1.9.0 version
As I already said CityMania client has PerformanceAccumulator disabled for vehicles so it's unlikely to be the cause of OSX perfermance drop. But it may help on Linux though, at least it did for me.pirogronian wrote:Maybe it's related to this: With lots of vehicles, PerformanceAccumulator has a large performance impact itself
-
- Engineer
- Posts: 8
- Joined: 05 Jul 2016 20:29
Re: OS X and 1.9.0 version
Indeed. I built CityMania client and run my gamesave without any performance issue.
Re: OS X and 1.9.0 version
with 1.9.1 CityMania client on OS X still cause performance issues, even on "start" screen with menu (mouse pointer moves)
when a window with openttd app is active (focused) - mouse moves with freezes
when i switch to another window - mouse moves without any issues over openttd app until i click on it to focus
here i share small screencast:
https://www.youtube.com/watch?v=BK6_QZ0 ... e=youtu.be
when a window with openttd app is active (focused) - mouse moves with freezes
when i switch to another window - mouse moves without any issues over openttd app until i click on it to focus
here i share small screencast:
https://www.youtube.com/watch?v=BK6_QZ0 ... e=youtu.be
-
- Engineer
- Posts: 1
- Joined: 27 Apr 2019 16:42
Re: OS X and 1.9.0 version
Wanted to drop in and mention I am running into this issue on OS X 10.14.4 as well.
1.9.x runs with very poor performance, which seems to effect GFX as well as mouse cursor.
1.9.x runs with very poor performance, which seems to effect GFX as well as mouse cursor.
Re: OS X and 1.9.0 version
Can you try taking a screenshot of the framerate window when the game is running poorly? (Open it via the ? button on the main toolbar.)
Or if it's impossible to navigate to a new game so you can open that, then try opening the console and type the "fps" command and post a screenshot of the output.
@dimaloop: It looks like you're using a high-resolution 32bpp graphics set. Can you try with OpenGFX (or original) base graphics instead?
Or if it's impossible to navigate to a new game so you can open that, then try opening the console and type the "fps" command and post a screenshot of the output.
@dimaloop: It looks like you're using a high-resolution 32bpp graphics set. Can you try with OpenGFX (or original) base graphics instead?
Re: OS X and 1.9.0 version
sure, i switched to OpenGfx and got same poor performance@dimaloop: It looks like you're using a high-resolution 32bpp graphics set. Can you try with OpenGFX (or original) base graphics instead?
- Attachments
-
- opengfx graphics set on mac retina 5k with default game (512*512)
- Снимок экрана 2019-04-27 в 21.21.16.png (107.47 KiB) Viewed 6799 times
Last edited by dimaloop on 28 Apr 2019 06:36, edited 1 time in total.
Re: OS X and 1.9.0 version
Very interesting, it's not any of the measured components that cause the slowness. At the timings measured you should be able to easily get 800 fps if it was uncapped. What happens if you turn on fast-forward?
Who is online
Users browsing this forum: No registered users and 2 guests