Tom Stellard
9aa4099375
Fix unused variable from d195a59c80
2020-12-24 10:43:39 -08:00
Tom Stellard
bfa6430bef
Speed up game simulations by using g_datalist_id_get_data()
...
g_datalist_id_get_data() performs much better than g_datalist_get_data()
because it uses a hash based lookup instead of string compare.
I tested this by starting a game with an English Premier league team
and then simulating to week 6. According to perf's cycle counts, this
patch makes this test case about 10 times faster.
There is still room for improvement. We currently re-compute the GQuark
value for every lookup, but we could pre-compute the GQuark once for each
option key and then use that value when looking up the data.
2020-12-24 10:43:39 -08:00
gyboth
078b70a1ea
Added debug logging.
2009-04-29 17:18:54 +00:00
gyboth
e4e16947c7
Constants editing.
2009-03-10 20:58:34 +00:00
gyboth
70d42221ca
Constants editing.
2009-03-09 20:20:26 +00:00
gyboth
f519321108
European defs, goto convenience.
2009-01-09 14:32:34 +00:00
gyboth
23cfbb3f0c
Added function name output when compiled with DEBUG.
2008-11-25 13:50:07 +00:00
gyboth
6f61b20f96
"Minor bugfix in query_cup_begins."
2005-11-26 16:52:51 +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
53131dd2e9
"Switched most GStrings to gchar."
2005-10-09 09:35:44 +00:00
gyboth
4b8e8c2532
"Command line options."
2005-09-29 13:41:16 +00:00
gyboth
08d169daf3
"Player skill system changed."
2005-09-14 21:16:22 +00:00
gyboth
add74f3251
"Minor bugfixes."
2005-08-04 12:37:50 +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
64c34275b8
"Segfixes."
2005-06-17 12:57:05 +00:00
gyboth
adea7fb911
"Fixes."
2005-06-15 16:44:53 +00:00
gyboth
d0c1b5142a
Options gui.
2005-03-23 19:03:26 +00:00
gyboth
4dd1f7b08b
Live game development.
2005-03-13 15:46:15 +00:00
gyboth
7e07d74abd
Made some progress; removed editor gui.
2005-03-03 12:46:48 +00:00
gyboth
7114381bfb
Initial revision
2004-12-23 12:58:39 +00:00