Opened 10 years ago

Last modified 8 months ago

#2618 closed enhancement

AI bugs destroy UI responsiveness — at Initial Version

Reported by: Josef Kufner Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

Funny thing happened. AI tried to build Civic Center on top of little hill, but there is no way uphill. A few workers got stuck under the clif and game dropped to slideshow with 100% CPU usage.

Problem is, that stupid behavior like this, can make game completely unplayable. AI planning should be performed in its own thread with no option to destroy responsiveness of user interface. I don't mind if AI is burning one of my CPUs, but I really don't like to watch unresponsive slideshow.

AI bugs causing this problems should be fixed, but first, AI invocation should be moved away from rendering and user interface.

I see in top, that there are multiple threads and only one of them is working very hard. So in case that AI is already separated from UI, there is probably bug in communication between these two.

Change History (3)

by Josef Kufner, 10 years ago

Attachment: screenshot1.png added

by Josef Kufner, 10 years ago

Attachment: screenshot2.png added

by Josef Kufner, 10 years ago

Attachment: savegame.0adsave added

Save of game with workers stuck under the clif. Easy to test how AI turns game into slideshow.

Note: See TracTickets for help on using tickets.