Author Topic:  2.4  (Read 15987 times)

0 Members and 1 Guest are viewing this topic.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.31
« Reply #15 on: September 14, 2015, 05:15:49 AM »
Scripts are now compiled to bytecode (more efficient execution).

I'll describe this item in detail as it's important for scripts.

In 2.3, the current retail version, scripts are interpreted on the fly as they are executed. The interpretation is expensive for two reasons.

1. The game has to process the commands as text (strings), by parsing them, comparing and converting the strings into commands and data, letter by letter, number by number, and testing for errors. This takes considerable CPU time to do.

2. In C#, particularly on the Xbox 360, string manipulation is expensive because it creates a lot of garbage, which is memory allocations, and after a certain amount of memory is allocated, the C# runtime performs a garbage collection, which in TM is extremely expensive, causing lock ups than sometime last for several hundred milliseconds (several frames). This is noticeable as annoying little freezes during gameplay. This problem is compounded by looping scripts.

In 2.31, scripts are no longer interpreted on the fly, they are now compiled (once) into bytecode, and it is the byte code that is executed when the script is executed. This means all the string manipulation, parsing, error checking is done only once, up front, during the compilation, and doesn't have to be done again (unless the scripted is edited/changed).

This is much more efficient because now the game can just execute the commands directly. It also drastically reduces the amount of generated garbage. This is particularly beneficial for looping scripts.

Some garbage is still generated by some commands, commands that utilize text substitution for example as the substitution cannot be done at compile time, but in general, garbage generation by scripts in 2.31 is only a fraction of what it is in 2.3.

Another benefit of much more efficient script execution is that it is now much less problematic to attach scripts to events, particularly events that can happen rapidly/frequently, such as breaking blocks, striking objects, taking damage, etc. This was a big part of the motivation to move to the byte code method, so that we can now look into event driven scripts with confidence.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.31
« Reply #16 on: September 14, 2015, 07:53:46 PM »
It looks like the peer review system is working again. We are working to submit the update in the next 24-48 hours.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.31
« Reply #17 on: September 20, 2015, 11:17:19 PM »
We found a few more bugs so couldn't make the 48 hour estimate. Then the weekend happened. As usual we will post a peer review topic once the update is submitted.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #18 on: September 24, 2015, 03:28:51 AM »
The 2.4 update has been submitted to peer review.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #19 on: September 24, 2015, 07:02:01 AM »
The peer review system is broken again. I'll resubmit when it's fixed.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #20 on: September 25, 2015, 03:32:58 AM »
2.4 has been resubmitted to an apparently fixed Peer Review.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #21 on: October 04, 2015, 09:34:03 PM »
I have emailed XBLIG support about the marketplace problems, a long with a number of other XNA devs, MS are aware of the problem, so it's just a matter of waiting until they sort it out.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #22 on: October 07, 2015, 01:14:30 AM »
Update:

Microsoft have stated the peer review/distribution problem is now fixed.

However the fix was not able to accommodate some of the games that passed peer review during the broken period.

Total Miner was one of those games.

So I have to resubmit the 2.4 update to peer review again and we will have to wait for the 8 reviews again.

I've been made aware of a couple of small bugs in the update, so I will fix those first, then resubmit asap, hopefully tomorrow.


Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6497
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
Re: 2.4
« Reply #23 on: October 08, 2015, 08:59:06 PM »
2.41 has been submitted to peer review.