slow to enter text into savegame textbox

Started by Slasher, Mon 15/05/2017 11:37:46

Previous topic - Next topic

Slasher

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...


Gilbert

Are you testing the game with DX9 or D3D?
Are there any other stuff running, such as in repeatedly execute (always)?

Slasher

#2
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.






Crimson Wizard

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?

Slasher

Hi Crimson,

Code: ags

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

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.
}






Crimson Wizard

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?

Slasher

I can't be certain. I think I just clicked within the Textbox then added text...

Crimson Wizard

Do you have anything going on in repeatedly_execute or Room's RepExec?

Slasher

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..

SMF spam blocked by CleanTalk