magefree / magefree/mage

AI: server must support multi-threaded simulations (minimum one per game)

Open
#12,368 1 comment 1 reaction 1 assignee Claimed by @JayDi85 View on GitHub
AI enhancement
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Current AI implementation uses single non-game thread for any calculations (game simulation). If you run multiple games with AI then each game must wait another (e.g. one freezes AI game can ruin whole AI games on server).

Possible reason: protection from concurrent data modifications or memory overflow;

What can be done:
* [x] normal: enable one AI thread per real game - it must be safe, even for ai vs ai games - it's done by max ai threads increase from 1 to 5;
* [ ] good: enable one thread per AI player - it’s better but may be affected by concurrent data modifications or other bugs. Can be implemented after more AI stability fixes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.