Gavin Greenwalt
Well-known member
- Joined
- Dec 29, 2006
- Messages
- 7,614
- Reaction score
- 0
- Points
- 36
- Age
- 40
I'm getting a feedback loop when changing values very very quickly.
E.G.
0.0ms | Set - shutter target - 1/200th
1.5ms | Set - shutter target - 1/288th
1.6ms | Current - shutter target- 1/200th
2.0ms | (1/288th != 1/200th) UI Callback: Set Shutter target 1/200th
2.6ms | Current - shutter target - 1/288th
2.7ms | (1/200th != 1/288th) Callback: Set Shutter target 1/288th.
Etc.
So that sets it into a loop. How are you guys solving this feedback loop? Should I have a rotating buffer and set a conditional to only use the latest as long as the latest is > 100ms old as a 'cooldown' period? How does the SDK Handle this situation?
E.G.
0.0ms | Set - shutter target - 1/200th
1.5ms | Set - shutter target - 1/288th
1.6ms | Current - shutter target- 1/200th
2.0ms | (1/288th != 1/200th) UI Callback: Set Shutter target 1/200th
2.6ms | Current - shutter target - 1/288th
2.7ms | (1/200th != 1/288th) Callback: Set Shutter target 1/288th.
Etc.
So that sets it into a loop. How are you guys solving this feedback loop? Should I have a rotating buffer and set a conditional to only use the latest as long as the latest is > 100ms old as a 'cooldown' period? How does the SDK Handle this situation?