Skip to content

Commit

Permalink
ZCPU VM now self-aware like GPU and SPU VMs are (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone authored May 17, 2024
1 parent e275982 commit 4e47f66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/entities/gmod_wire_cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function ENT:Initialize()
-- Create virtual machine
self.VM = CPULib.VirtualMachine()
self.VM.SerialNo = CPULib.GenerateSN("CPU")
self.VM.Entity = self
-- Since the device supports (quota)interruptible instructions
-- Memory access can be a lot cheaper.
self.VM.MemoryReadCycles = 2
Expand Down

0 comments on commit 4e47f66

Please sign in to comment.