Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jerky Animated Giff While Processing
Message
De
24/09/2008 14:35:05
 
 
À
24/09/2008 14:20:02
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01350136
Message ID:
01350284
Vues:
30
>>>>>Simply that. Due to the processing that is going on, the animated gif looks jerky, stopping and starting. Is there any way to have it run smooth while Foxpro is working?
>>>>
>>>>By "the processing that is going on", do you mean other processing in your VFP app (or other processing within your control), or other processing you have no control over?
>>>>
>>>>If it's within your own VFP app, you could put calls to DOEVENTS at strategic locations in your long-running code. For best results you could put it in the tightest loop(s) you can find and/or in code that is called frequently. If this addresses your particular issue, the more frequently DOEVENTS is called, the smoother your animation will be.
>>>>
>>>>If the issue is with long-running SELECTs or other SQL engine commands, check message#1153094
>>>
>>>I tried that, but it didn't make any difference. There are a fair amount of loops, etc, though I think most of the time is spent making calls out to a webservice. There may be no way of making the gif work smoother with that.
>>
>>If the webservice calls are currently synchronous, is it possible to make them asynchronous, and periodically poll the service to see if it's complete? Pseudocode:
>>
>>=StartAsyncWebServiceCall( parameters ... )
>>
>>DO WHILE NOT AsyncWebServiceCallComplete( )
>>  DOEVENTS
>>
>>  SleepAPICall( 15 milliseconds )
>>  * "Smooth" animation is about 30 frames/sec or faster, or ~30 milliseconds/frame
>>  * To reliably get DOEVENTS calls at least every 30 milliseconds, you have to poll twice as fast,
>>  * therefore 15 milliseconds apart
>>
>>ENDDO
>>
>
>I'll give it a try. BTW, you really got the network/web/services stuff down pretty good. Where were you during my HL7 project last year?

My ability to fake it only goes so far.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform