Quantcast
Channel: OKWAVE 最新質問(Visual Basic/257)【本日】
Viewing all articles
Browse latest Browse all 6510

なめらかに動かしたい

$
0
0
Visual Basic 2010で作っています。 ピクチャーボックス(縦500横1500)上を縦棒を移動するプログラムです Dim g As Graphics = Me.PictureBox1.CreateGraphics() For k = 1 to 100 For j = 1 to 20000 For i = 1 to 1000 StartBlack = i + 50 Startwhite = i g.FillRectangle(Brushes.Black, StartBlack, 0, 50, 500) g.FillRectangle(Brushes.White, Startwhite, 0, 50, 500) Next System.Threading.Thread.Sleep(2) Next Next このプログラムを  Celeron で動かすと 時々引っかかるような動きになります。 Core 2 Quad で動かすとなめらかに動きます。 Celeron 上でもなめらかな動きにするにはどうしたらいいでしょうか?

Viewing all articles
Browse latest Browse all 6510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>