forked from CyberBiology/CyberBiology
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround: неверный подсчет pests и pestGenes
Подсчет статистики выполняется неверно по причине несинхронизированного доступа потоков к переменным класса World. (issue #1) Данным коммитом вводится подсчет pests и pestGenes по фактическому состоянию массива ботов matrix перед отрисовкой мира. Это "обходной путь". Главной идеей остается динамическое изменение pests и pestGenes в процессе пересчета, то есть при рождении/гибели/мутировании бота. Это будет выгоднее по производительности при малых шагах отрисовки.
- Loading branch information
Showing
3 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters