Skip to content

Commit

Permalink
[MIRROR] Removed proc overhead from the Input subsystem (#59339) (#2568)
Browse files Browse the repository at this point in the history
Removed proc overhead from the Input subsystem (#59339)

Co-authored-by: Watermelon914 <[email protected]>
Co-authored-by: Watermelon914 <[email protected]>
  • Loading branch information
3 people authored Nov 28, 2024
1 parent b264c90 commit ed01938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 2 additions & 4 deletions code/controllers/subsystem/input.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ SUBSYSTEM_DEF(input)
user.set_macros()

/datum/controller/subsystem/input/fire()
var/list/clients = GLOB.clients // Let's sing the list cache song
for(var/i in 1 to clients.len)
var/client/C = clients[i]
C.keyLoop()
for(var/mob/user as anything in GLOB.player_list)
user.focus?.keyLoop(user.client)
6 changes: 0 additions & 6 deletions code/modules/keybindings/bindings_client.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,3 @@
if(mob)
mob.focus?.key_up(_key, src)
mob.update_mouse_pointer()


// Called every game tick
/client/keyLoop()
holder?.keyLoop(src)
mob?.focus?.keyLoop(src)

0 comments on commit ed01938

Please sign in to comment.