Search found 416 matches

by decompile
Fri Aug 18, 2023 10:45 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey,

thank you for all the work on this so far. The changes are literally day and night in a very positive way, and makes developing way easier. :) Is there any update about this?
by decompile
Fri Aug 04, 2023 7:34 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Thank you for this detailed explanation. Thats an explanation if you ask me! :)
by decompile
Wed Aug 02, 2023 11:32 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey, I tried it out and it feels as good as before. Is the change noticeable?
by decompile
Thu Jul 27, 2023 6:52 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Thanks for the update! I'm currently trying it out and I feel no loss in performance. Its very smooth and the results in threads are amazingly fast with enable_thread_yielding enabled. Just for example: 2640 Time: 0.26081013679504395 Edit: I've tested some I/O things aswell. Opening, reading and ana...
by decompile
Wed Jul 26, 2023 11:38 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey, thank you for the changes. They look promising and I'm currently trying it out, thanks alot. Just noticed this here when unloading my test.py from yesterday. [SP] Successfully loaded plugin 'test'. test_function sp plugin unload test [SP] Unloading plugin 'test'... [Source.Python] [SP] Caught a...
by decompile
Tue Jul 25, 2023 11:38 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Could you please leave me a downloadable version of your InfiniteThread changes? I would like to try it out. I've now updated the run function to your improved one: def run(self): while self.connected: while not self.queue.empty(): with ThreadPoker(): callback, args, kwargs =...
by decompile
Tue Jul 25, 2023 3:54 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

I'm simply just starting srcds, wait until the map is loaded and load my snippet from here by typing sp plugin load mysql , which then caps the tickrate / fps to 10.00. If I would reload the plugin several times in the same session, then there would be indeed several threads running, but the output ...
by decompile
Tue Jul 25, 2023 1:39 am
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Yeah, youre right.. No idea how I haven't noticed using while instead of with , haha. Changing it to: def run(self): with ThreadPoker(): while self.connected: while not self.queue.empty(): callback, args, kwargs = self.queue.get_nowait() callback(*args, **kwargs&#...
by decompile
Mon Jul 24, 2023 11:40 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

It's a class I use for everything database related, which works fine on my linux machines but is very slow on my windows server.

Removing self.queue.task_done() gives me the same results. How is while ThreadPoker(): properly used in my example?
by decompile
Mon Jul 24, 2023 9:58 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey, looks like something is still not right. I cant get it to work consistent.. # Python import pymysql import time import queue # Source.Python from listeners.tick import GameThread from listeners.tick import ThreadPoker class ThreadedMySQL(GameThread): def __init__(self): self.que...
by decompile
Mon Jul 24, 2023 3:19 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

It works! Thank you so much for your effort and investigating. <3

Code: Select all

2609
Time: 0.06781792640686035
by decompile
Sun Jul 23, 2023 7:35 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

So I could just import: from _listeners._tick import ThreadPoker and update the run function to: (??) def run(self): with ThreadPoker(): while self.connected: while not self.queue.empty(): callback, args, kwargs = self.queue.get_nowait() self.queue.task_done()...
by decompile
Sun Jul 23, 2023 4:23 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey, I've tried it out now and the snippet works as expected with your newly updated GameThread class. Thank you. thread = GameThread(target=do_thread) thread.start() 2582 Time: 0.06981301307678223 However, when wrapping the GameThread class, the slow process is sadly back.. # Python...
by decompile
Sat Jul 22, 2023 9:03 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Hey, thank you for investing your time into my issue. I've got amazing results! I've replaced threading.Thread with your FocusedGameThread class, and I've got the following results: 2567 Time: 0.08876204490661621 # Python from os import system import pymysql import time # Source.Python from listener...
by decompile
Fri Jul 21, 2023 12:39 am
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

Re: GameThread slow

Articha wrote:Any help? All right. Do you sure that I/O operations have more priority in alternate threads? I/O operations in separate threads can have lower priority than main, which leads to block of the auxiliary thread


Hey! I've tried to set srcds.exe to the highest priority but sadly without any success..
by decompile
Wed Jul 19, 2023 6:10 pm
Forum: Plugin Development Support
Topic: GameThread slow
Replies: 32
Views: 78759

GameThread slow

Hey there, I'm facing an issue that I haven't been able to resolve on my own. The problem involves using GameThreads with the pymysql module. Specifically, I'm loading a plugin that fetches queries from a MariaDB database, and I've noticed that the results take significantly longer than running them...
by decompile
Tue Sep 20, 2022 3:09 pm
Forum: Plugin Development Support
Topic: trace ray
Replies: 4
Views: 2984

Re: trace ray

Thank you both for the help, it works!
by decompile
Sat Sep 17, 2022 12:51 pm
Forum: Plugin Development Support
Topic: trace ray
Replies: 4
Views: 2984

trace ray

Hello, I'm using trace ray's to figure out if the player is touching a surface, and if so, return the steepness angle of the surface if its found. def get_trace_ray(self): origin = self.origin destination = Vector(*origin) destination.z -= 3500 trace = GameTrace() engine_trac...
by decompile
Mon Jul 25, 2022 2:09 pm
Forum: Plugin Development Support
Topic: print UnicodeEncodeError
Replies: 4
Views: 3031

Re: print UnicodeEncodeError

Sorry for my late reply, i was on holidays!

I will update you as soon as this problem reoccurs.
by decompile
Wed Jul 06, 2022 10:26 pm
Forum: Plugin Development Support
Topic: print UnicodeEncodeError
Replies: 4
Views: 3031

Re: print UnicodeEncodeError

Thank you for your update!

The machine where the exception occurs is running CS:S only, since your core file is inside a csgo folder.

Its a very weird behaviour, since the machine's output of /etc/default/locale is:
LANG=en_US.UTF-8

Go to advanced search