Javaアプレットのゲームの限界は!at GAMEDEVJavaアプレットのゲームの限界は! - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト248:名前は開発中のものです。 02/11/18 06:36 http://www.gimlay.org/~andoh/hatena/JavaPerformanceTuning/newsletter009.html 最後に、パフォーマンス・フォーラムの外では Niels Jorgensen が、 アルファ・チャネル(alpha channel)を使わず、 MemoryImageSource.newPixels()と一緒に DirectColorModel(new DirectColorModel(32,0x00ff0000,0x0000ff00,0x000000ff)) を使用したところ、デフォルト・カラーモデルを使用する場合に較べてどれほど画像描画が 著しく速くなったかについて説明していました。 そのスレッド( JavaGaming.Org Message Board: 2D Graphics Programming in Java: AWT: Oddities of drawImage() ) には newPixels() の使い方についてのより詳細な内容があります。 249:名前は開発中のものです。 02/11/18 06:39 http://www.javagaming.org/discus/messages/2/113.html Yieeeha! If anyone else out there has similar problems, try this, after creating the MemoryImageSource: cm=new DirectColorModel(32,0x00ff0000,0x0000ff00,0x000000ff); memimgsrc.newPixels(aPixels,cm,0,iW); Subsequent calls to newPixels does not need the color model (Once set, it appears as if the MemoryImageSource keeps on using it)... とか書いてあります。よくわからないけど、 32bitのほうが速いのかなぁ???謎。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch