3

The new Unreal Engine 4 is able to change the game logic at runtime. For example you can jump into the game, change some game logic and once it is recompiled it will be updated in the game itself.

I was wondering how they did it?

My first idea was that they separate their game logic to a .dll and then they are just reloading/injecting it at runtime. But I also know that .dlls are windows specific. I think the equivalent in linux is called .elf.

What alternatives are there?

I also know that there is a c++ interpreter available but I think the newer version uses a jit compiler now. Would this help me in any way?

I hope you can clear things up for me.

4

1 に答える 1

0

Unreal Engine does this by using Hot Reload which basically (re)compiles the source code that has been changed and reloads it back into game. The game will be in a paused state while compilation is taking place.

This presentation goes into more detail about the technique.

于 2013-03-24T23:24:56.553 に答える