PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [XP] No hang script beim AVI PLayer



Daiuuus
08.02.2014, 23:47
Hi, kann mir jemand sagen wie ich dieses Script benutze um beim AVI Player das Video ohne Ruckler abzuspielen?

if @zer_no_hang_stack.nil?
##
# Change the Graphics module so it contains the time of the last update
# Add a getter for the time property
#
module Graphics
# Alias the update method (you have to do it this way since Graphics is a module)
class << self
alias no_hang_update update
end
##
# Change the update method
#
def self.update
@@time = Time.now
self.no_hang_update
end
##
# Retrieve the Time at the last update
#
def self.time
# Protection if this method is called before the first update
@@time = Time.now if @@time.nil?
return @@time
end
end

##
# A separate thread that will run and keep track of the time since the last
# update
#
Thread.new {
loop do
# Lets the thread sleep for a while to minimize CPU usage
sleep 1
# If more than 4 seconds has passed since the last update
if Time.now - Graphics.time > 4
# Update the graphics
Graphics.update
end
end
}

@zer_no_hang_stack = true
end