Commit Graph

84 Commits

Author SHA1 Message Date
Tom Stellard ff343e94d3 Try to avoid calling team_get_fixture() from player_is_banned()
team_get_fixture() is expensive and we can avoid this call in the
majority of cases.

This reduces the number of instructions reported by
./test/benchmark.sh --benchmark by ~40%.
2021-03-27 09:23:22 -04:00
Tom Stellard 879190e971 Fix item size for Player cards array 2021-03-27 09:23:22 -04:00
Tom Stellard a31ea36c08 Cache some commonly used constants
All constants were stored in a g_datalist structure, which has very slow
lookups.  This was not ideally for constansts used during game play
which are accessed thousands of times.  Caching these values makes the
game simulations about 2 times faster.
2020-12-24 10:43:39 -08:00
Tom Stellard 863fefd371 Make team_get_fixture() return const pointer 2020-12-24 10:43:39 -08:00
gunnar_g ca195b5e51 Updated the default team implementation 2009-09-15 12:02:44 +00:00
gunnar_g 6f389198c6 there is an option to store the order of your team, this order will be restored after a match 2009-06-24 20:02:50 +00:00
gyboth 078b70a1ea Added debug logging. 2009-04-29 17:18:54 +00:00
gunnar_g a1b1904660 fix compiler warnings 2009-03-23 13:20:59 +00:00
gyboth 78fc4a8af7 Live game foul probabilities reworked. 2009-03-08 11:34:30 +00:00
gyboth 9ac3481a6d Fixed the horses problem. 2009-01-11 15:24:26 +00:00
gyboth 23cfbb3f0c Added function name output when compiled with DEBUG. 2008-11-25 13:50:07 +00:00
gyboth e6a426a8da Table bugfix. 2008-11-24 09:37:54 +00:00
gyboth b9415b186e Multiple tables for leagues feature completed. 2008-11-22 16:51:31 +00:00
gyboth dc2614005a Fitness bug workaround. 2008-05-04 11:04:02 +00:00
gyboth 3866702637 Star player balking. 2008-05-02 12:26:35 +00:00
gyboth 5de905d993 Season end team change improvement. 2006-05-25 19:54:01 +00:00
gyboth 617b7a2b6d "Minor fixes." 2005-12-21 16:02:49 +00:00
gyboth 002587ecbe Job exchange bugfixes. 2005-12-10 12:21:19 +00:00
gyboth 84927a6494 "Minor betting fix." 2005-11-28 16:27:16 +00:00
gyboth 6f61b20f96 "Minor bugfix in query_cup_begins." 2005-11-26 16:52:51 +00:00
gyboth 54132543c4 "Betting bugfix." 2005-10-31 16:19:14 +00:00
gyboth b1c539abe0 "Betting improvements, opponent display in live game." 2005-10-28 09:11:33 +00:00
gyboth 59f3804f09 CPU strategies, first draft. 2005-10-24 21:06:40 +00:00
gyboth 3b23bb353f "CPU strategies, first draft." 2005-10-24 20:50:48 +00:00
gyboth fa0b06f39d "Randomise teams option added." 2005-10-20 15:45:00 +00:00
gyboth d4e55dc684 "Release 1.9.2." 2005-10-16 09:23:04 +00:00
gyboth 6b176972bb "Cup talent diff bug fixed." 2005-10-13 08:52:33 +00:00
gyboth 53131dd2e9 "Switched most GStrings to gchar." 2005-10-09 09:35:44 +00:00
gyboth 2c1c98bbec "Minor improvements." 2005-09-27 12:18:46 +00:00
gyboth 6b4a11c8f1 "Player streaks first draft implemented." 2005-09-18 10:02:10 +00:00
gyboth 08d169daf3 "Player skill system changed." 2005-09-14 21:16:22 +00:00
gyboth 8a1324b40a "YA improvements." 2005-07-14 16:05:10 +00:00
gyboth 5be5e30cb3 "YA loadsave." 2005-07-08 17:34:10 +00:00
gyboth 1292db317c "YA first draft." 2005-07-08 09:26:00 +00:00
gyboth 9e55218a2a "Live game commentary in xml files." 2005-06-26 11:42:01 +00:00
gyboth 24679ad5f2 "Bugfixes, add_week, supernational." 2005-06-23 21:53:57 +00:00
gyboth a0074cc159 "Supernational countries." 2005-06-22 17:44:33 +00:00
gyboth ce6564ef47 "Team definition system." 2005-06-21 13:33:16 +00:00
gyboth e777937956 "Sponsorship money." 2005-06-20 12:46:57 +00:00
gyboth 3650122f67 "Gettext stuff." 2005-06-18 14:45:29 +00:00
gyboth 64c34275b8 "Segfixes." 2005-06-17 12:57:05 +00:00
gyboth b9452bd02b "Segfixes." 2005-06-16 06:56:12 +00:00
gyboth fed7efad10 "Segfixes." 2005-06-15 19:13:35 +00:00
gyboth 71f16667b2 "Profiling." 2005-06-04 20:22:22 +00:00
gyboth 26c15bb566 "Minor fixes." 2005-06-04 10:28:49 +00:00
gyboth da1c972577 "Fixes, intercont. cup." 2005-06-03 07:45:09 +00:00
gyboth d8c8eee3c1 "-m Player name files, first and last names." 2005-06-01 18:19:02 +00:00
gyboth c8642bc8b3 "Minor bug fixed." 2005-05-28 10:41:53 +00:00
gyboth a161a09249 "Minor fixes." 2005-05-26 09:07:56 +00:00
gyboth 0f12364c95 "Career values." 2005-05-19 19:43:22 +00:00