Wie bekomm ich die Geschwindigkeit zur Darstellung des Zufallbildes noch schneller hin.
Bei mir braucht jede Darstellung mindestens 100ms. Das wären doch 10fps ?!.
Wenn ich ein HD Video mit einem Player (Flash, VLC) angucke habe ich eine Framerate von 25-30.
Mogeln die Programme oder wie bekommt man so eine hohe Bildrate?
Code: Alles auswählen
#window = 1
Structure p
point.l
EndStructure
width.i = 1280
height.i = 720
Global *pixel.p
InitSprite()
OpenWindow(#window,0,0,width,height,"")
OpenWindowedScreen(WindowID(#window),0,0,width,height)
Repeat
timer = ElapsedMilliseconds()
StartDrawing(ScreenOutput())
buffer = DrawingBuffer()
pitch = DrawingBufferPitch()
For y.i = 0 To height-1
*pixel = buffer+y*pitch
For x.i = 0 To width-1
*pixel\point = 2455555
*pixel + 4
Next
Next
StopDrawing()
FlipBuffers()
Debug ElapsedMilliseconds()-timer
Until WindowEvent() = #PB_Event_CloseWindow
CloseWindow(#window)