Answer the question
In order to leave comments, you need to log in
What are the lua graphics libraries?
What are the lua graphics libraries?
Answer the question
In order to leave comments, you need to log in
voproser45654 , Lua is not fast compared to compiled languages. But yes, it is fast in terms of sketching out logic without bothering with the programming language. And for games (in addition to focusing on game design) there is another plus - this is to immediately add the possibility of modifications.
It is important to understand that Lua is an embeddable language. He was like that from the very beginning, and still is. This means that he is not independent. The same game will have some kind of core, which will be the environment for Lua.
Graphic functions are usually important to optimize in terms of speed. And this means that the library or something similar must be in a compiled language. Although the use of these functions can eventually be "thrown" into Lua, they will work outside of it.
So my answer is: Lua and the notion of a graphics library are incompatible.
I can give TTS as an example. Maybe not the best example, but still. There, at the Lua level, you can work with collisions and rays in 3D. However, this is only true from the user's point of view. In fact, of course, the call to the appropriate functions is redirected to the Unity engine, and it works there, and the result is returned back to Lua. I must say that it turns out extremely slowly and inefficiently in general. The more such calls, the greater the total overhead. But a couple of hundred calls per second is not that much.
In terms of speed, Lua can conditionally be considered 100 times slower than C ++. This is not noticeable when the calculation takes several nanoseconds. And game logic usually does not take much. Type hp==0 means death. Something like that, if you exaggerate.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question