The alternative batch-send seems to work correctly. Needed to have a LoopingCall to make sure to empty the batch-queue now and then ... this is a little annoying but it doesn't take much resources (and creating the callback dynamically is death to performance at these time steps). See #620.
This commit is contained in:
parent
4e4461b7fd
commit
5f4df1250a
1 changed files with 11 additions and 14 deletions
|
|
@ -205,9 +205,6 @@ def c_moves_s(client):
|
||||||
"move through south exit if available"
|
"move through south exit if available"
|
||||||
return "south"
|
return "south"
|
||||||
|
|
||||||
def c_test(client):
|
|
||||||
return "@test"
|
|
||||||
|
|
||||||
# Action tuple (required)
|
# Action tuple (required)
|
||||||
#
|
#
|
||||||
# This is a tuple of client action functions. The first element is the
|
# This is a tuple of client action functions. The first element is the
|
||||||
|
|
@ -248,9 +245,9 @@ def c_test(client):
|
||||||
# #(0.1, c_creates_button),
|
# #(0.1, c_creates_button),
|
||||||
# #(0.4, c_moves))
|
# #(0.4, c_moves))
|
||||||
# "inactive player" definition
|
# "inactive player" definition
|
||||||
ACTIONS = (c_login_nodig,
|
#ACTIONS = (c_login_nodig,
|
||||||
c_logout,
|
# c_logout,
|
||||||
(1.0, c_test))
|
# (1.0, c_idles))
|
||||||
## "normal player" definition
|
## "normal player" definition
|
||||||
#ACTIONS = ( c_login,
|
#ACTIONS = ( c_login,
|
||||||
# c_logout,
|
# c_logout,
|
||||||
|
|
@ -265,14 +262,14 @@ ACTIONS = (c_login_nodig,
|
||||||
# c_logout,
|
# c_logout,
|
||||||
# (1.0, c_moves_n))
|
# (1.0, c_moves_n))
|
||||||
## "socializing heavy builder" definition
|
## "socializing heavy builder" definition
|
||||||
#ACTIONS = (c_login,
|
ACTIONS = (c_login,
|
||||||
# c_logout,
|
c_logout,
|
||||||
# (0.1, c_socialize),
|
(0.1, c_socialize),
|
||||||
# (0.1, c_looks),
|
(0.1, c_looks),
|
||||||
# (0.2, c_help),
|
(0.2, c_help),
|
||||||
# (0.1, c_creates_obj),
|
(0.1, c_creates_obj),
|
||||||
# (0.2, c_digs),
|
(0.2, c_digs),
|
||||||
# (0.3, c_moves))
|
(0.3, c_moves))
|
||||||
## "heavy digger memory tester" definition
|
## "heavy digger memory tester" definition
|
||||||
#ACTIONS = (c_login,
|
#ACTIONS = (c_login,
|
||||||
# c_logout,
|
# c_logout,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue