Image noise: Difference between revisions

m
→‎{{header|PureBasic}}: improved readability
m (→‎{{header|PureBasic}}: Increased FPS by running without synchronization)
m (→‎{{header|PureBasic}}: improved readability)
Line 257:
OpenWindowedScreen(WindowID(0),0,0,w,h,1,0,0,#PB_Screen_NoSynchronization)
Repeat
cnt+1
StartDrawing(ScreenOutput())
For y=0 To h-1
Line 272 ⟶ 271:
cnt+1
If cnt>=#UpdateFreq
cnt =0: TOld=T: T=ElapsedMilliseconds()
TOld=T
T =ElapsedMilliseconds()
FloatingMedium*(1-#filter)+1000*#filter/(T-TOld)
SetWindowTitle(0,"PureBasic: "+StrF(#UpdateFreq*FloatingMedium,2)+" FPS")
Repeat ; Handle all events
Event=WindowEvent()
If Event=#PB_Event_CloseWindow
Anonymous user