Multi-threader snippet by Omegazion

by Man... posted Oct 28, 2008
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
#==============================================================================
# ** Multi-threader snippet by Omegazion
#------------------------------------------------------------------------------
#  This snippet allows you to run your game in multiple threads, allowing
#  you to test different things simultaneously.
#
#  You can only run this during play test at the RPGVX's editor.
#==============================================================================
BEGIN {
  #----------------------------------------------------------------------------
  # * Set the number of additional threads here
  #----------------------------------------------------------------------------  
  number_of_additional_threads = 4

#==============================================================================
  if $TEST
    number_of_additional_threads.times do
      Thread.new{ system( "Game")}
    end
  else
    $TEST = true
  end
}