Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Mon 15/05/2017 11:37:46

Title: slow to enter text into savegame textbox
Post by: Slasher on Mon 15/05/2017 11:37:46
Hi

I'm not sure what could be causing this problem...  Save gui has a high z and there appears to be no other gui's that can obstruct it except cockpit gui which is shown yet when i go to enter a save name it takes about 8 seconds for the text to appear in the save textbox window.

It only happens during the intro...

3.4.0.14

any ideas?

using Debug(4,1);

it starts with 9/10 and when gsave open goes 7/8 then back to 9/10  FPS

EDIT It appears to only happen in preview (windowed) mode...

Title: Re: slow to enter text into savegame textbox
Post by: Gilbert on Tue 16/05/2017 02:24:09
Are you testing the game with DX9 or D3D?
Are there any other stuff running, such as in repeatedly execute (always)?
Title: Re: slow to enter text into savegame textbox
Post by: Slasher on Sun 11/06/2017 08:12:42
Hi

This problem has not yet been resolved.

Save Game Textbox slow to add text. It take 5 / 7 seconds before text appears...In any room...

Even in Full screen.

Can't seem to find anything that would conflict with it.

d3d
stretch to fit
1024 x 768
32 bit

EDIT: It also seems that if you Back-key beyond left of the textbox area the text becomes delayed..

EDIT EDIT: It is definitely something to do with txtNewSaveName.. I'm not quite sure what...when going to add text the text | start before the textbox x.... I deleted all the saved files and left the save textbox blank.. then saved slot. This seems to have cured the issue...or so it seems at the moment.





Title: Re: slow to enter text into savegame textbox
Post by: Crimson Wizard on Sun 11/06/2017 16:57:00
Too little information to make any conclusions, but I feel like this slowdown may be related to mistakes in your script (like, too much going on per game tick).
Can you post more of your script that works with textbox and list of saves?
Title: Re: slow to enter text into savegame textbox
Post by: Slasher on Sun 11/06/2017 17:40:47
Hi Crimson,

Code (ags) Select

function btnSaveGame_OnClick(GUIControl *control, MouseButton button)
{
  int gameSlotToSaveInto = find_save_slot(txtNewSaveName.Text);
  if (gameSlotToSaveInto < 0)
  {
    Display("No more free save slots!");
    return;
  }
  SaveGameSlot(gameSlotToSaveInto, txtNewSaveName.Text);
  close_save_game_dialog();
}

Code (ags) Select

function txtNewSaveName_OnActivate(GUIControl *control)
{
  // Pressing return in the text box simulates clicking the Save button
  btnSaveGame_OnClick(control, eMouseLeft); // CAUSED SLOW TEXT ENTRY.. Why, I don't know. I Commented out and now works fine.
}





Title: Re: slow to enter text into savegame textbox
Post by: Crimson Wizard on Sun 11/06/2017 17:47:39
So, it starts to be slow when you press Enter once, and then begin to enter text for the second time?
Or it was slow from the very beginning?
Title: Re: slow to enter text into savegame textbox
Post by: Slasher on Sun 11/06/2017 18:00:51
I can't be certain. I think I just clicked within the Textbox then added text...
Title: Re: slow to enter text into savegame textbox
Post by: Crimson Wizard on Sun 11/06/2017 18:18:32
Do you have anything going on in repeatedly_execute or Room's RepExec?
Title: Re: slow to enter text into savegame textbox
Post by: Slasher on Sun 11/06/2017 19:47:24
Hi Crimson,

mostly in global rep exe always as well as global rep exe,

mainly gui's with gui and pointer issues...

Can't find anything that would cause a confliction..