Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tipsandtricks [2019/10/03 14:00] – [Changing Position, RotationAngle or Scale] admin | tipsandtricks [2019/10/03 14:06] – [Threading] admin | ||
---|---|---|---|
Line 43: | Line 43: | ||
end; | end; | ||
</ | </ | ||
+ | |||
+ | ==== Threading ==== | ||
+ | |||
+ | It is not uncommon to use a thread to compute visual property values. But because FMX (and also Gorilla3D) only runs in main thread, we need to synchronize somehow. | ||
+ | |||
+ | Synchronization needs to be threadsafe, so everyone uses TThread.Synchronize(nil, | ||
+ | That's okey for many applications, | ||
+ | |||
+ | While " | ||
+ |