I thought that I would investigate
SetFrameRate within InForm, as I may need to speed things up in program I'm working on. So, within the existing program "Fireworks" (by Fellippe) I changed SetFrameRate periodically from 30 (default) to 120. I noticed that the speed of the firework display did not change very much. With the following code within the
__UI_BeforeUpdateDisplay subroutine
Count% = Count% + 1
'PRINT #1, Count%
IF Control
(ExitBT
).Hidden
= False
THEN Control(ExitBT).Hidden = True
Control(ExitBT).Disabled = True
SetFrameRate 120
Control(ExitBT).Hidden = False
Control(ExitBT).Disabled = False
SetFrameRate 30
Count% = 0
writing to a text file, the times for 300 cycles were: 10s for SetFrameRate 30 (correct), but 7.4s for SetFrameRate 120 (should be 2.5s). I noticed that during the SetFrameRate 120 periods the computer was running at one full CPU, which is usually indicative of the computer running at full speed. I have a Core i5 processor, so running the Fireworks program should be using very little CPU effort.
I have noticed that the IDE is slow to update changes in an InForm program, so does InForm use a lot of CPU?
Richard