Skip to main content
GameDev.net gamedev.net
🔒 Locked

CompileFunction and JIT

Started by gjl Feb 5, 2021 at 9:03 PM 4 replies 5.7k views
Original Post
gjl
gjl

Hi,

I have just noticed that when you create a script function using the CompileFunction method, it is not “JIT Compiled” (JIT compilation seems to happen only when building a module). Is there any reason for that? Or maybe I missed something?

WitchLord
WitchLord

This is not intentional. It was just never implemented.

I'll look into it.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
gjl
gjl

Thanks! It seems that just adding a call to the JIT at the end would do the trick, but I am of course not 100% sure, it may be more subtle, as usual :-)!

WitchLord
WitchLord

I've implemented this in rev 2701.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
gjl
gjl

Awesome, thanks! Will try this out shortly!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.