Gtuner IV and Titan Two 1.08 BETA Release
Re: Gtuner IV and Titan Two 1.08 BETA Release
J2Kbr wrote:Released
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%)
GPC: Discarded: z__default_cmap, z_ads_cmap, z_ads_mxyc, z_inventory_cmap, z_inventory_mxyc, z_softaim_cmap, z_softaim_mxyc
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Gtuner IV and Titan Two 1.08 BETA Release
Yes i tried that too, it can save a lot of size and time ! Awesome
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
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
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
J2Kbr wrote:Released
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 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();
}
- Code: Select all
#pragma once
#ifdef func
#undef func
#define func func
void func() {
fix32 a[64];
static fix32 b[64];
return;
}
#endif
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
Re: Gtuner IV and Titan Two 1.08 BETA Release
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
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
-
t7gergamer - Sergeant First Class
- Posts: 25
- Joined: Tue Apr 07, 2020 6:14 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
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.
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
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!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV and Titan Two 1.08 BETA Release
Thanks
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Return to News and Announcements