I have a PI DLL that wraps some PISDK functions, this DLL is refrenced into my my ACE context and run on schedule. Problem is when i debug the solution i get a 100 calcs a second(reading, calculating & writing). I then register and let the thing run, it gets a measly 20 calcs a seconds. This huge diffrence stays the same when i change the prioty as to high. Even though i set the priority the code set runs quicker in debug mode as to when its in a service.
Are there any ACE tricks i need to utilize to ensure my code runs at the same speed?