Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROM loading hangs UI #16

Open
tykel opened this issue Sep 1, 2013 · 1 comment
Open

ROM loading hangs UI #16

tykel opened this issue Sep 1, 2013 · 1 comment
Assignees
Milestone

Comments

@tykel
Copy link

tykel commented Sep 1, 2013

When loading a ROM, nChip16 hangs up to a minute.
I am guessing this is due to the disassembly process happening synchronously, please correct me if I am wrong.

Suggested Fix: disassemble in a separate thread, and update the "Source" list once it is finished.
Version: 0.9.6.0
ROM: ShowCompImage.c16

@ghost ghost assigned mwedmark Sep 1, 2013
@mwedmark
Copy link
Owner

mwedmark commented Sep 1, 2013

Thanks for testing and thanks for reporting the problem. This has already been reported earlier and I did a couple "quick ugly" fixes. The problem comes from the RichEditTextBox which is extremely slow on handling appending of text when having lots of lines.

The current fixes for this problem is:

  1. Disable the source listing from the menu by choosing to deselect "Show source listing". By doing this, the listing will not the done at all. The only way to get it there later in today's version is to enable it and reload the complete project.

  2. To try and minimize the number of lines in the source listing (thus increasing performance) I've added a pre-defined label called "EndOfProgram". So when compiling your own programs and they have lots of data at the end, if you add this label to the end of the program, the assembler listing will not go further after finding this label. A minimal "problem" with this is that there can't be two labels defined at the same address so make sure that the EndOfProgram is defined at its own address.

I'll leave this open and try to REALLY fix the problem with performance before next release. Maybe I'll switch to ListBox instead..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants