Support of multi core CPU

Posted By: DeepReflection

Support of multi core CPU - 09/18/10 21:33

Hi,

Just to complete the picture, R.L. drain most of my time and I might have missed this completely but the last time I made an empiric test, only one CPU of a quad was 100% used. With the A8 and all other updates do this engine take advantage of multi-core CPU? You know i3 i5 i7 and similar babies?

I tried to find out in the release documents and on forum but to no vain. If truly A8 take advantage of multi core CPU it should be mentioned. Otherwise the conclusion is no! Can this in a polite way be confirmed? For sure if not supported this would require a more or less remake of the core and if so is this planned?

Please enlighten me of the current state of business.
Posted By: painkiller

Re: Support of multi core CPU - 09/18/10 22:38

I think gamestudio is in 32-bit, not 64-bit, so it doesn't take advantage of the multiple cores, except the map compiler, which uses all the cores you have in order to build the level faster.
Posted By: DeepReflection

Re: Support of multi core CPU - 09/18/10 22:53

I appreciate you're reply but my question is not whatever related to 32 or 64 bit space. That is more of can Game studio take advantage of more than 4 Gig of memory?. My question is if it capable to utilize more than one core to calculate and run core tasks at ounce?
Posted By: SchokoKeks

Re: Support of multi core CPU - 09/19/10 08:00

The engine itself does only run one core task. It doesn't support multi-core CPUs.

With lite-C, you can use the Windows-API to create more threads and have them run on the other CPU cores, a plugin for that has also been created by a user.
There are restrictions, as far as i know you shouldn't access engine variables from threads and you might want to keep away from some engine functions.
Posted By: WretchedSid

Re: Support of multi core CPU - 09/19/10 09:03

Yes, when using your own threads, stay away from every engine function that creates something. Or at least perform those operations on the main thread.
Posted By: DeepReflection

Re: Support of multi core CPU - 09/19/10 11:15

Thanks for the info, it helps when you have a key word to search with, however the plugin seems not available anymore, i got 403 forbidden on that site. Multithreading plugin

Slin mention that it can be done in another way, is this documented somewhere? Also I got the feeling you need to make something in c++ to get a go with this technique?
Posted By: Quad

Re: Support of multi core CPU - 09/19/10 11:22

no, can be done in lite-c only, for docs check msdn for threaded programming, CreateThreadEx etc.
Posted By: JibbSmart

Re: Support of multi core CPU - 09/19/10 21:10

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=252827#Post252827
Posted By: jcl

Re: Support of multi core CPU - 09/20/10 08:14

The engine itself can not use multiple cores because the main engine functions must run in a certain order.

But side functions, such as video or audio streaming, use multiple cores. You can also use them the way described above when you have time consuming functions.
Posted By: DeepReflection

Re: Support of multi core CPU - 09/20/10 16:24

Thanks for the clarifications, this seems to be the way to go. A pity it seems the example from this thread again is unavailable boost up you game... (use multithreading!)

Very well, at least I see a workable path to make full use of the CPU, and not let some Cores stay idle...
Posted By: Razoron

Re: Support of multi core CPU - 09/25/10 17:29

Here is the direct link for my multithreading plugin. http://razgames.de/wp-content/uploads/Multithreading-0.2.zip
Posted By: Anonymous

Re: Support of multi core CPU - 09/26/10 07:47

boost up your game - multithreading examples
© 2024 lite-C Forums