Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 79

Thread: Further Developments in Asmosphere I.

  1. #31
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Further Developments in Asmosphere

    Hi Charles,

    I like that logic very much ... finally it is very close ( equal! ) to OpenGL binding of buffers.
    Ideal!


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #32

    Re: Further Developments in Asmosphere

    Yes I was reminded of glBindTexture too, Petr

    re: dynamic linking vs: static linking of Vars

    During the course of our discussion, I began to realise that runtime addressing thinBasic variables is going to be essential for preassembled strings.

    Something like ##vv to use instead of the static #vv.

    in processing terms this binding process is going to be quite slow, so it should only be used once in an intialisation procedure to get the address of the variable, then store the result as a pointer for later use eg:

    var 4 pvv
    pvv=##vv


  3. #33

    Re: Further Developments in Asmosphere


    One further refinement to o2_exec

    o2_exec

    without parameters this executes code in the current buffer.
    but with a string argument it will execute the string and ignore the buffer.

    o2_exec (my_code)


  4. #34
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Further Developments in Asmosphere

    This is good,

    thanks for making it flexible like that!


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #35
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Further Developments in Asmosphere

    So much progress, it all sounds very exciting. I am very happy to hear there will be example scripts to give me a hope of trying to understand all of this cool stuff!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  6. #36

    Re: Further Developments in Asmosphere

    Spent much of yesterday considering multiple entry points whci are going to be essential for any systems that multi-task, like sound generation. To get the very best performance, there are 8 new o2 calls. They take no parameters but call a jump table location (like DLL calls) offset from the start of the code string at 8 byte intervals:

    o2_proc1 .. o2_proc8

    I think 8 should be sufficient. The procs ensure that the static variables setup by o2_exec are immediately accessible.

    The other issue is being able to store pre-assembled strings in a file and reload them for later use. For this we need two more functions:

    dim mycode as string
    mycode=o2_get
    o2_put mycode


    These respectively retrieve from and store to the currently selected o2_buf.

    Preassemble code strings Code strings cannot contain any static references like #variables, but ##variables are resolved at runtime albeit with a speed penalty.

    This is how the new functions are used together

    uses "File"
    uses "Oxygen"

    dim cod as string=File_Load "mycode.bin"

    o2_put cod
    o2_exec ' main procedure initialises
    ...

    while ok
    ...
    o2_proc1 ' service
    ...
    loop
    o2_proc2 ' release resources and terminate


  7. #37
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Further Developments in Asmosphere

    Very neat,

    the next Oxygen module update will be a megabomb again.


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #38

    Re: Further Developments in Asmosphere

    Here it is at last!

    http://community.thinbasic.com/index.php?topic=1637

    This version covers major new ground so there is much to explore. I have endevoured to provide a comprehensive set of functions which should cover most needs, and make larger program development more manageable.

    The examples at this stage are really test pieces - trying out different techniques to produce the same result, but I hope they will be useful and not too hard to adapt.

    Writing assembly code is like making mayonnaise by hand: add very small amounts of code at first then test thoroughly. If your code curdles it may be quicker to start again

  9. #39
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Further Developments in Asmosphere

    Fantastic!

    Sooner than I expected, very much appreciated!


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  10. #40
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Further Developments in Asmosphere

    Thanks Charles, Petr and I were google chatting when he said your new release is out. So I think we both rushed over to get it and look at the examples.
    Thanks very excited to see what is in the beast, well the code that can make us write beast apps.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. Further Developments in Asmosphere III
    By Charles Pegge in forum Legacy
    Replies: 30
    Last Post: 22-09-2008, 22:55

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •