Ok, then I'll collect the data enabling again desktop composition in the compatibility options, and monitoring before and after the slowdown occurs.
consumes too much CPU when it should be idle
Moderator: Moderator
Re: consumes too much CPU when it should be idle
@DG: Read my updated post above, I found a workaround 
Ok, then I'll collect the data enabling again desktop composition in the compatibility options, and monitoring before and after the slowdown occurs.
Ok, then I'll collect the data enabling again desktop composition in the compatibility options, and monitoring before and after the slowdown occurs.
Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: consumes too much CPU when it should be idle
It calls the display 33 times per seconds which should not even make a dent in a celeron that just can not be that.greycat wrote:If the game is really calling an SDL routine dozens of times every second, even when it's just sitting idle, that might also account for the CPU use....Code: Select all
griffon:/usr/local/src/t-engine4-src-1.0.0beta10b$ grep 'handling sdl even' logs/Urist | sort | uniq -c 1 handling sdl event 17 87 handling sdl event 2 2086 handling sdl event 24 86 handling sdl event 3 383 handling sdl event 4 3 handling sdl event 5 3 handling sdl event 6
Please use the display() method i posted above and geet me the log
Ah yes you are using the default already.I'd have to figure out what that means first.... "premake4 --help" says there's a --lua=VM_Type option, and its choices are "default" or "jitx86". I've been typing "premake4 gmake" and then "gmake" to compile, so I'm apparently using the "Default Lua Virtual Machine", whatever that means.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: consumes too much CPU when it should be idle
Ahh .. windows ..Feanor.81 wrote:BIG UPDATE: Found a workaround to prevent the slowdown issue, by starting t-engine process with "Disable visual themes", "Disable desktop composition" and "Disable display scaling on high DPI settings" compatibility options enabled (but I think only the second matters, I will be trying enabling again the other two). This way I've been able to play my archer for 15 minutes without any slowdown, and CPU usage never went higher then 30%. This makes me think that probably there is some graphic compatibility issue with Win7 Aero theme, since:
Anyway it still means we can get better, and greycat example proves there is still a problem deep within
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: consumes too much CPU when it should be idle
Here are my logs, collected with default application settings (no compatibility option enabled), the first is at game load, the second experiencing slowdown.
- Attachments
-
- DisplayLogs.rar
- (3.29 KiB) Downloaded 238 times
Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: consumes too much CPU when it should be idle
Ah yes this seems to confirm what I thought.
Now try with this: http://pastebin.com/8Q8MrLW8
(This will only display the map not UI)
Now try with this: http://pastebin.com/8Q8MrLW8
(This will only display the map not UI)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: consumes too much CPU when it should be idle
Tested it. I made my way to Trollshaws(5) and back to Bree, killing anything in my way. (Thanks gods found no OOD, without GUI it would have just meant insta-death
) About 15 minutes of play, and not a single frame dropped, everything was perfectly smooth.
I guess you got it
I guess you got it
Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: consumes too much CPU when it should be idle
Alchemist, one and a half levels of the Trollshaws: (attached, I hope)darkgod wrote:Please try to replace the display() method in game/modules/tome/class/Game.lua with this one: http://pastebin.com/SPAYHB6G
Then post here the output when it runs fine and when it runs slow please.
- Attachments
-
- Yr-Kel.bz2
- (54.64 KiB) Downloaded 220 times
Re: consumes too much CPU when it should be idle
Attached. Didn't play very long, though.darkgod wrote:Ah yes this seems to confirm what I thought.
Now try with this: http://pastebin.com/8Q8MrLW8
(This will only display the map not UI)
CPU use with that version is virtually nil.
- Attachments
-
- Yr-Kel-2.bz2
- (16.45 KiB) Downloaded 230 times
Re: consumes too much CPU when it should be idle
yeah that confirms it, the UI code is horribly unoptimized while the map code is optimized to the teeth.
I'll change them to be much faster
I'll change them to be much faster
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: consumes too much CPU when it should be idle
I did, next beta should run quite faster, hopefully 
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: consumes too much CPU when it should be idle
Some of the problems I have been experiencing seem to be related to the UI too. At one point, mouse movement worked wile keyboard lagged.
Re: consumes too much CPU when it should be idle
Well, 11b is definitely faster on my home box (the one with the old Radeon card). The load-average-ometer is no longer pegged at 1+ the whole time. It even feels faster when I'm walking around in the Trollshaws, at least, which is definitely more important than the actual CPU use.
On the work box, unfortunately, it's still rather sluggish. The work box has a built-in Intel chipset, rather than a graphics card of any kind. Not sure if there's anything that can or should be done about that....
On the work box, unfortunately, it's still rather sluggish. The work box has a built-in Intel chipset, rather than a graphics card of any kind. Not sure if there's anything that can or should be done about that....
Re: consumes too much CPU when it should be idle
No more stuttering, nor is there thousands of pagefaults per second any more. Good job!
my handwriting is bad
-
Final Master
- Sher'Tul
- Posts: 1022
- Joined: Fri May 21, 2010 8:16 pm
- Location: Inside the minds of all
- Contact:
Re: consumes too much CPU when it should be idle
While overall game play is the fastest it's ever been, saving still takes way longer than I think it should, continuously reaching minutes. What could be making the saves for T4 be so much longer than saves of T2? I remember less than a second saves back then...
Oh, I do still run into random slow downs, but it is probably due to leaning on a direction to tear through 30+ ants at a time.
Oh, I do still run into random slow downs, but it is probably due to leaning on a direction to tear through 30+ ants at a time.
Final Master's Character Guides
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D
Re: consumes too much CPU when it should be idle
Savefiles are large (tens of MB uncompressed) because they save most of the world, this has the cost of being longer to save but the HUGE advantage of not having module makers think about savefiles at all and making everything absolutly dynamic. The game can change every single variable of every single object in the world and it will be saved.
As for over a minute saves it is still not normal, it should take maybe tens of seconds at most.
Is it while saving & exiting or while saving while playing ?
As for over a minute saves it is still not normal, it should take maybe tens of seconds at most.
Is it while saving & exiting or while saving while playing ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning