Optimization II version

Introduction

The next version, where the main goal is optimization. This time, the task was to replace all PolledWait() and TriggerSleepAction() functions. The task is only half completed, as there are a total of 178 such functions, and 85 have been replaced in this version. 93 are still left.

But of course, these changes are not limited to that, there are also interesting innovations.

Optimization

Changes

Bug fixes