DevLabs > DevLabs Forums > Small Basic > Projects running extremely slow when started from .exe
Ask a questionAsk a question
 

Answer Projects running extremely slow when started from .exe

  • Thursday, October 22, 2009 8:23 PMDudeson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi there!

    i just noticed that one of my projects in my project compilation runs extremely slomo-ish when started through the exe file! but when you run it in small basic, it runs fast. (it doenst look like lag, it just looks slow motion-ish...)
    it runs normal at the start of the program. but after about 0.5 seconds its going slomo..

    whats up with that???
    Live for nothing, OR CODE FOR SOMETHING!

Answers

  • Monday, November 02, 2009 11:17 AMFremyCompanyAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I may have over-estimated the performance increase - it seemed faster but that was only based on my memory of the SmallBasic compiled version which I though was slower.

    A program .NET launched for the first time (after compilation) is alwas slightly slower. To test performance, you should always run the *.exe twice.
    Additionnaly, you shouldn't notice many perf improvements when switching to VB. The same functions are used, so the perf will be similar.

    The only thing who can change is the speed of numerical operations (like 1+3).
    Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extension
    • Marked As Answer byDudeson Monday, November 02, 2009 9:25 PM
    •  

All Replies

  • Friday, October 23, 2009 9:25 PMlitdevAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Try v0.7 and convert to VB - for me your zombie program runs fast and smoothly.  The only change I made was to manually set the ProgramDirectory variable to be the SmallBasic path where the images and sounds are.  It also runs (too fast for me) when the exe is run without Visual Studio.
  • Saturday, October 24, 2009 7:40 PMDudeson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    it runs at the same speed for me...

    did i do something wrong??
    Live for nothing, OR CODE FOR SOMETHING!
  • Sunday, October 25, 2009 1:21 PMlitdevAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I may have over-estimated the performance increase - it seemed faster but that was only based on my memory of the SmallBasic compiled version which I though was slower.
  • Sunday, October 25, 2009 1:28 PMDudeson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    doh..


    NOOOOOO!
    Live for nothing, OR CODE FOR SOMETHING!
  • Monday, November 02, 2009 11:17 AMFremyCompanyAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I may have over-estimated the performance increase - it seemed faster but that was only based on my memory of the SmallBasic compiled version which I though was slower.

    A program .NET launched for the first time (after compilation) is alwas slightly slower. To test performance, you should always run the *.exe twice.
    Additionnaly, you shouldn't notice many perf improvements when switching to VB. The same functions are used, so the perf will be similar.

    The only thing who can change is the speed of numerical operations (like 1+3).
    Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extension
    • Marked As Answer byDudeson Monday, November 02, 2009 9:25 PM
    •