Equivalent to Unity's Update function?
Hi, I'm having a crash here and there when Updating things in Tick(float DeltaSeconds) function. In Unity C# I could use
To Update on every frame. Is Tick inappropriate to use in this way? If so, what feasible alternative do I have available? Sorry for such a newb question, but I'm asking because I can't find any info in the api ref or documentation. Thanks in advance for any help.
asked Apr 10 '14 at 11:31 PM in C++ Programming
Yes, Tick(float DeltaSeconds) is exact equivalent of that. But by default it is disabled, you need to place:
....in class constructor. DeltaSeconds is time between frames, so you can change vars based of time not frames
You should have no crashes so double check if your code is right, use debugger it should point you to line which cause the crash (keep in mind with C++ you compiling CPU machine code and without proper error handling if things will go wrong instead of friendly error, application will simply crash like unsafe mode in C#)
Follow this question
Once you sign in you will be able to subscribe for any updates here