Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tabularelf committed May 28, 2022
0 parents commit c061297
Show file tree
Hide file tree
Showing 26 changed files with 876 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 TabularElf

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
49 changes: 49 additions & 0 deletions SimThreads.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions objects/obj_test/Create_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/// @description Insert description here
// You can write your code in this editor
show_debug_overlay(true);
thread = new SimThread();
thread.SetMaxExecution(1);
entriesList = array_create(10000, "the pug is never the end ");
buffer = buffer_create(1, buffer_grow, 1);
// Write a bunch of data to said buffer
var _len = array_length(entriesList);
var _i = 0;
repeat(_len) {
thread.Push({
callback: buffer_write,
args: [buffer, buffer_text, entriesList[_i++]]
});
}

thread.Push(function() {
buffer_save(buffer, "mytext.txt");
show_debug_message("Buffer saved!");
buffer_delete(buffer);
});

//thread.Flush();

/*myMethod = function() {
var _i = 0;
var _str = [];
var _num = 0;
repeat(1000) {
_num = 1;
}
repeat(argument_count) {
_str[_i] = argument[_i];
++_i;
}
show_debug_message(_str);
}
myOtherMethod = function() {
return object_get_name(object_index);
}
repeat(1000) {
thread.Push({callback: myMethod, args: [irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024), irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024), irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024),irandom(1024)]});
}
thread.Insert(myMethod, 0);
thread.Push({callback: show_debug_message, args: [myOtherMethod()]});
//show_message(thread.ToArray());
3 changes: 3 additions & 0 deletions objects/obj_test/Other_3.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// @description Insert description here
// You can write your code in this editor
thread.Flush();
9 changes: 9 additions & 0 deletions objects/obj_test/Step_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// @description Insert description here
// You can write your code in this editor
if keyboard_check_released(vk_control) {
thread.Pause();
}

if keyboard_check_released(vk_alt) {
thread.Resume();
}
36 changes: 36 additions & 0 deletions objects/obj_test/obj_test.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions options/android/options_android.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions options/html5/options_html5.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions options/ios/options_ios.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions options/linux/options_linux.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c061297

Please sign in to comment.