Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Threads

Author
Message
sovr
9
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 26th Dec 2012 04:31
I have been looking into how to use thread on windows with vs2010. The problem is I have little to no clue how use them and I don't even know if I can just use agk as a source for threads... if so then how? I realize that most people use libraries for threads in C++, but I just really don't know what to do. Thank you for directing me to right area or helping me on threads, I will try to find a library that works well with agk.

hello there!
JimHawkins
10
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 29th Dec 2012 09:39
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms682516(v=vs.85).aspx

Threads can be nasty if you don't know what you're doing. What do you want to do?

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
sovr
9
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 3rd Jan 2013 21:36
I am very sorry for the long wait, but I was wanting to use threads to load things at the same time. A good example is for loading and deleting terrain after the render distance while moving and interacting with NPC in the local region. The loading/deleting could be one thread while interacting with NPC's could be another thread. Thank you for your help

hello there!
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 20:25
Try boost::thread

http://www.codeproject.com/Articles/279053/How-to-get-started-using-Boost-threads

Althrough, you may get errors while trying to load images and render things at the same time. Depends. It's worth a try through.

Follow me on twitter! @MotionStruct
Motion Struct blog
Markus
Valued Member
15
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Feb 2013 18:13 Edited at: 13th Feb 2013 18:16
alternative you can do what you want not at all in once and
do only a part each frame and memory the state.

before
load trees 0-1000

after per frame
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
load trees 100
chetan
6
Years of Service
User Offline
Joined: 17th Apr 2013
Location:
Posted: 17th Apr 2013 13:11
In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by an operating system scheduler. A thread is a light-weight process. The implementation of threads and processes differs from one operating system to another, but inmost cases, a thread is contained inside a process.

Login to post a reply

Server time is: 2019-08-18 02:37:38
Your offset time is: 2019-08-18 02:37:38