Game Design
Game Design Indonesia .. Forum Untuk Bersama Membuat Game Berkreasi Bersama Bukan Untuk Menyombongkan Diri Saling Berbagi bersama Selebihnya Silahkan Login,Forum
TERIMAKASIH
Lead Forum

Join the forum, it's quick and easy

Game Design
Game Design Indonesia .. Forum Untuk Bersama Membuat Game Berkreasi Bersama Bukan Untuk Menyombongkan Diri Saling Berbagi bersama Selebihnya Silahkan Login,Forum
TERIMAKASIH
Lead Forum
Game Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» Perkenalan member qornanali
Cache Optimasi EmptyTue Nov 12, 2013 8:11 am by A|L|F|DGI|Wibie Sultan

» perkenalan
Cache Optimasi EmptySun Oct 06, 2013 1:39 pm by A|L|F|DGI|Wibie Sultan

» Apasih Keunggulan Forum Ini
Cache Optimasi EmptyTue Sep 10, 2013 3:54 pm by Rudy pangabean

» Perkenalan member Bima
Cache Optimasi EmptyTue Sep 10, 2013 3:52 pm by Rudy pangabean

» Scared 1 Topic
Cache Optimasi EmptyTue Sep 10, 2013 3:51 pm by Rudy pangabean

» Dynamic Class Changer
Cache Optimasi EmptyThu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Cache Optimasi
Cache Optimasi EmptyThu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Miscellaneous Options
Cache Optimasi EmptyThu Aug 29, 2013 8:25 pm by A|L|F|DGI|Wibie Sultan

» XS battle audio
Cache Optimasi EmptyThu Aug 29, 2013 8:22 pm by A|L|F|DGI|Wibie Sultan

» Teleport free
Cache Optimasi EmptyThu Aug 29, 2013 8:20 pm by A|L|F|DGI|Wibie Sultan

» Interacting System
Cache Optimasi EmptyThu Aug 29, 2013 8:15 pm by A|L|F|DGI|Wibie Sultan

» NEO MENU SYSTEM V1.04
Cache Optimasi EmptyThu Aug 29, 2013 8:10 pm by A|L|F|DGI|Wibie Sultan

» Rules update script
Cache Optimasi EmptyThu Aug 29, 2013 7:57 pm by A|L|F|DGI|Wibie Sultan

» VX ace (Tikus system)
Cache Optimasi EmptyThu Aug 29, 2013 7:52 pm by A|L|F|DGI|Wibie Sultan

» Ask update script RPG maker
Cache Optimasi EmptyTue Aug 27, 2013 9:08 pm by AssJikom

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 22 on Wed Jun 10, 2020 10:07 pm
Top posting users this week
No user

Social bookmarking

Social bookmarking reddit      

Bookmark and share the address of Game Design on your social bookmarking website

Twitter Forum

recently twittered on Forumotion


Cache Optimasi

Go down

rpg maker Cache Optimasi

Post by A|L|F|DGI|Wibie Sultan Thu Aug 29, 2013 8:26 pm

Cache Optimasi
oleh Jet

pengantar

Bahkan di Ace, mereka tidak memungkinkan pra-caching gambar, juga tidak mereka kembali dups bukan asli untuk mencegah pembuangan, dan menyebabkan rekreasi. Ini perbaikan ini "masalah"

fitur

- Pra-cache semua Graphics luar arsip dienkripsi
- Pengembalian dup gambar bukan asli
- Mengurangi amonts kecil tidak dibutuhkan lag
- Dan tidak lebih ...
Code:
#===============================================================================
# Cache Optimization
# By Jet10985 (Jet)
#===============================================================================
# This snippet will pre-cache all images at the beginning of the game to
# quicken the loading of bitmaps in-game, and return dups instead of originals
# to prevent having to recreate after disposing it.
# This script has: 0 customization options.
#===============================================================================
# Overwritten Methods:
# None
#-------------------------------------------------------------------------------
# Aliased methods:
# Cache: load_bitmap
#===============================================================================

if File.directory?("Graphics")
   g_array = Dir.entries("Graphics")
   g_array.each {|a|
      next if [".", ".."].include?(a)
      if !File.directory?("Graphics/#{a}")
         Cache.load_bitmap("Graphics/", a) rescue next
         next
      end
      file = Dir.entries("Graphics/#{a}")
      file.each {|b|
         next if [".", ".."].include?(b)
         if File.directory?("Graphics/#{a}/#{b}")
            g_array << "#{a}/#{b}"
            next
         end
         Cache.load_bitmap("Graphics/#{a}/", b) rescue next
      }
   }
end

class << Cache
   
   alias jet3745_load_bitmap load_bitmap unless $@
   def load_bitmap(*args, &block)
      (jet3745_load_bitmap(*args, &block)).dup
   end
end
A|L|F|DGI|Wibie Sultan
A|L|F|DGI|Wibie Sultan
Administrator
Administrator

Gemini Jumlah posting : 236
Thanks/Like Post : 31
Join date : 2013-06-26
Lokasi : Indonesia,bandung
Humor : We All Work Together

https://designgameindonesia.indonesianforum.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum