how can threading in python help me in my traffic simulation project? can i use it to detect other cars?
harrykokil 0 Light Poster
Recommended Answers
Jump to PostYou don't need threading. In your main loop, use the pygame timer functions to tell you how much time has elapsed since the last loop, and when that time accumulates to 5 seconds you may redraw the circle.
All 3 Replies
lllllIllIlllI 178 Veteran Poster
harrykokil 0 Light Poster
scru 909 Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.