Gtuner IV and Titan Two 1.08 BETA Release

Official news and announcements from the ConsoleTuner team.

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby Scachi » Thu Apr 30, 2020 9:41 pm

J2Kbr wrote:Released :joia: :smile0517:
Gtuner IV 1.08B Revision 2 changelog:
Code: Select all
* Code Editor: File handles are kept closed, so other apps can have write access {GitHub#375}
* GPC Compiler: Implemented garbage collection of unused variables, functions, combos {GitHub#377}
* GPC Compiler: Updated xb1.gph header file to include XB1_SYNC define (BUTTON_21)

Before: GPC: Bytecode usage: 7795 bytes (95.15%)
Now with Garbage collection: GPC: Bytecode usage: 7433 bytes (90.73%) :smile0517: :smile0517:
GPC: Discarded: z__default_cmap, z_ads_cmap, z_ads_mxyc, z_inventory_cmap, z_inventory_mxyc, z_softaim_cmap, z_softaim_mxyc
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby Prototype » Fri May 01, 2020 7:55 am

Yes i tried that too, it can save a lot of size and time ! Awesome :smile0517:
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3250
Joined: Sun Dec 16, 2012 1:43 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby Prototype » Fri May 01, 2020 8:48 am

Scachi wrote:But now we can copy it to the SD without having to remove the SD from the T2, so it is a big step forward

This is the part that discouraged me since every time I format the SD card I have to reinstall a LOT of files, especially with fighting characters. Now it's automatic :shocked: :joia:
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3250
Joined: Sun Dec 16, 2012 1:43 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby DontAtMe » Sat May 02, 2020 4:06 am

J2Kbr wrote:Released :joia: :smile0517:
Gtuner IV 1.08B Revision 2 changelog:
Code: Select all
* Code Editor: File handles are kept closed, so other apps can have write access {GitHub#375}
* GPC Compiler: Implemented garbage collection of unused variables, functions, combos {GitHub#377}
* GPC Compiler: Updated xb1.gph header file to include XB1_SYNC define (BUTTON_21)

Is it possible to discard local variables from discarded functions? Freeing up the static memory.

Example
Code: Select all
main {
 
}
void func() {
  fix32 a[64];
  static fix32 b[64];
  return;
}
Code: Select all
GPC: Variables: Global: 0, Local: 2, Parameters: 0, Pointers: 0, Constants: 0, Labels: 0, Functions: 1, Combos: 0
GPC: Memory usage: Static: 256 bytes (25.00%), Dynamic: 256 bytes (25.00%)
GPC: Second-pass started.
GPC: Unreferenced: func, a, b
GPC: Garbage collection started.
GPC: Discarded: func, a*, b* (* static memory still allocated)
I understand why static variables should be allocated, however, I don't see the purpose of still allocating them from discarded functions. Seeing as they would never be used.

I know by utilizing the preprocessor you can choose to include or to omit the function completely by doing something like this
Code: Select all
#define func
#include "my_header.gph"
main {
  func();
}
my_header.gph
Code: Select all
#pragma once
 
#ifdef func
#undef func
#define func func
void func() {
  fix32 a[64];
  static fix32 b[64];
  return;
}
#endif
But it would be nice to simply include the header, and not worry about defining any functions that I plan to use.
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby t7gergamer » Tue May 05, 2020 1:23 am

I downloaded the Gtuner IV 1.8 beta to solve share/touch button on paddles issue for Xbox Elite 2 controller.

Installed the direct download application, but my Titan Two seems to be stuck on 1.73 firmware. The problem is that I couldn't locate the "Gtuner.cfg" file on my iMac. Went to my Gtuner IV.app to show package content, found the Gtuner.exe but not the .cfg. Also could not find Gtuner under Application Support with hidden files shown either. Could someone help me out?

I"m assuming adding the [Advanced] beta_tester=true code will solve the issue.

Thanks
User avatar
t7gergamer
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Tue Apr 07, 2020 6:14 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby J2Kbr » Tue May 05, 2020 1:54 pm

t7gergamer wrote:I downloaded the Gtuner IV 1.8 beta to solve share/touch button on paddles issue for Xbox Elite 2 controller. Installed the direct download application, but my Titan Two seems to be stuck on 1.73 firmware. The problem is that I couldn't locate the "Gtuner.cfg" file on my iMac. Went to my Gtuner IV.app to show package content, found the Gtuner.exe but not the .cfg. Also could not find Gtuner under Application Support with hidden files shown either. Could someone help me out?
I"m assuming adding the [Advanced] beta_tester=true code will solve the issue.
Thanks

Yes, you are correct. On Mac the Gtuner.cfg is here:

Macintosh HD⁩ ▸ ⁨Users⁩ ▸ ⁨(UserName)⁩ ▸ ⁨Library⁩ ▸ ⁨Application Support⁩ ▸ ⁨Gtuner⁩

You have to show hidden files first Shift + Command + >
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby J2Kbr » Tue May 05, 2020 2:03 pm

Thank you DontAtMe for your suggestions.

The Gtuner 1.08 Beta Rev3 released today has significant improvements on the garbage collection procedures. However, static variables are still allocated. The addressing of static variables are determined when generation the symbol table (first-step), to complicate the addressing is memory aligned depending on the data type, as such a simple offsetting to remove the unused variable will not work. To proper get hid of unused static variables would be need re-run all compiler procedures from beginning. I did not discarded this option yet, however, would prefer find a more elegant/optimized way.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby Prototype » Tue May 05, 2020 6:24 pm

I have an issue to update, after the update the software is still in 1.8.1.2 and finds the 1.8.1.3 so i updated 3 times but still the same.
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3250
Joined: Sun Dec 16, 2012 1:43 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby J2Kbr » Tue May 05, 2020 8:06 pm

prototype wrote:I have an issue to update, after the update the software is still in 1.8.1.2 and finds the 1.8.1.3 so i updated 3 times but still the same.

Please try download the full package from here:

WIN: Gtuner IV 1.08B-Rev3
MAC: Gtuner IV 1.08B-Rev3
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Gtuner IV and Titan Two 1.08 BETA Release

Postby Prototype » Tue May 05, 2020 8:15 pm

Thanks :joia:
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3250
Joined: Sun Dec 16, 2012 1:43 pm

PreviousNext

Return to News and Announcements

Who is online

Users browsing this forum: No registered users and 67 guests