Skip to content

Commit c061297

Browse files
committed
Initial commit
0 parents  commit c061297

26 files changed

+876
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 TabularElf
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SimThreads.yyp

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/obj_test/Create_0.gml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/// @description Insert description here
2+
// You can write your code in this editor
3+
show_debug_overlay(true);
4+
thread = new SimThread();
5+
thread.SetMaxExecution(1);
6+
entriesList = array_create(10000, "the pug is never the end ");
7+
buffer = buffer_create(1, buffer_grow, 1);
8+
// Write a bunch of data to said buffer
9+
var _len = array_length(entriesList);
10+
var _i = 0;
11+
repeat(_len) {
12+
thread.Push({
13+
callback: buffer_write,
14+
args: [buffer, buffer_text, entriesList[_i++]]
15+
});
16+
}
17+
18+
thread.Push(function() {
19+
buffer_save(buffer, "mytext.txt");
20+
show_debug_message("Buffer saved!");
21+
buffer_delete(buffer);
22+
});
23+
24+
//thread.Flush();
25+
26+
/*myMethod = function() {
27+
var _i = 0;
28+
var _str = [];
29+
var _num = 0;
30+
repeat(1000) {
31+
_num = 1;
32+
}
33+
repeat(argument_count) {
34+
_str[_i] = argument[_i];
35+
++_i;
36+
}
37+
show_debug_message(_str);
38+
}
39+
40+
myOtherMethod = function() {
41+
return object_get_name(object_index);
42+
}
43+
44+
repeat(1000) {
45+
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)]});
46+
}
47+
48+
thread.Insert(myMethod, 0);
49+
thread.Push({callback: show_debug_message, args: [myOtherMethod()]});
50+
51+
//show_message(thread.ToArray());

objects/obj_test/Other_3.gml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// @description Insert description here
2+
// You can write your code in this editor
3+
thread.Flush();

objects/obj_test/Step_0.gml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// @description Insert description here
2+
// You can write your code in this editor
3+
if keyboard_check_released(vk_control) {
4+
thread.Pause();
5+
}
6+
7+
if keyboard_check_released(vk_alt) {
8+
thread.Resume();
9+
}

objects/obj_test/obj_test.yy

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/android/options_android.yy

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/html5/options_html5.yy

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/ios/options_ios.yy

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)