脚本引用:
#==============================================================================
# Módulo AntiLag
#==============================================================================
module AntiLag
SPC = Win32API.new("kernel32", "SetPriorityClass", "pi", "i")
@@high_priority = false
def self.high_priority ; @@high_priority; end
def self.high_priority?; @@high_priority; end
def self.high_priority=(valor)
return if @@high_priority == valor
@@high_priority = valor
if @@high_priority
SPC.call(-1, 0x80)
return
end
SPC.call(-1, 0x20)
end
end
AntiLag.high_priority = true
以下引用asperta于2008-6-25 15:39:07的发言:
试了下,原先2十几帧的游戏,用了后还是2十几帧
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |