Search found 2225 matches

by 1000101
Jan 01, 2013 20:19
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 19453

Re: TinyDialog a simple Windows user interface.

It would be nice if this was cross platform. A simple clean windows/linux UI interface would be great but I understand the complications and additional requirements of doing so. As I understand it, the dialogue Show() method is a blocking function? Also, being winapi it should be thread-safe, yes? A...
by 1000101
Dec 28, 2012 15:37
Forum: General
Topic: What causes threads to lock up?
Replies: 25
Views: 1539

Re: What causes threads to lock up?

I would avoid any rendering from multiple threads. About the only time you can "safely" do it is rendering to a specific target (buffer). You must avoid any state changes in unguarded code entirely though. State changes are anything which sets any latent internal gfxlib2 setting (eg, clipp...
by 1000101
Dec 17, 2012 3:22
Forum: Community Discussion
Topic: Lbound/Ubound's dimension parameter
Replies: 6
Views: 1165

Re: Lbound/Ubound's dimension parameter

To find out if there is an invalid dimension, lbound = 1, ubound = 0. I think this would be the simplest way to check at runtime but it would rely on the user checking. ie: #Macro check( _arr_, _d_ ) Print _d_; If( UBound( _arr_, _d_ ) >= LBound( _arr_, _d_ ) )Then Print " Is valid, "; Els...
by 1000101
Dec 15, 2012 0:59
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 72137

Re: Procedural block world project

Glad to hear you have plans for development. I look forward to playing with future releases.

I have been playing with it as-is. I've sort of "taken over" one of the giant mushrooms and have been "redeveloping" it.
by 1000101
Dec 14, 2012 11:27
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 72137

Re: Procedural block world project

@ gonzo:

So I've been playing about with this the last couple days but I can't seem to get crafting to work. I can turn mossy stones into cobblestone but I can't make a work bench or any of the other items listed in crafting.txt - Am I missing something?
by 1000101
Dec 13, 2012 3:13
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 72137

Re: Procedural block world project

@ Gonzo have you tracked CPU core usage ? eg on a core by core basis It may be possible to utilize idle cores to munch stuff in the background, think precompute \ predictive computing. Or at the very least off load non graphical stuff on to idle cores. Yeah, the OS does that for you so your post/po...
by 1000101
Dec 05, 2012 5:31
Forum: General
Topic: Need advice: cast(integer, float)
Replies: 21
Views: 2528

Re: Need advice: cast(integer, float)

Int() should give you the floored value, CInt() should give you the rounded value.
by 1000101
Nov 25, 2012 2:29
Forum: General
Topic: What is this operator?
Replies: 7
Views: 829

Re: What is this operator?

Whether you call it a potato or a potatoe wasn't really my point so much as knowing how it works and the underlying logic. But just for reference, around here it's potato. :P
by 1000101
Nov 24, 2012 9:29
Forum: General
Topic: What is this operator?
Replies: 7
Views: 829

Re: What is this operator?

I tend to think of the <> (greater or less than) operator as "Is Not", ie: If Count Is Not 0 Then ... From a high-level language (HLL) standpoint, <> (greater or less than) can be thought of as the same as != (not equal) but there are actually different branching instructions in low-level ...
by 1000101
Nov 24, 2012 9:14
Forum: General
Topic: #Define values and functions ?
Replies: 14
Views: 527

Re: #Define values and functions ?

In the case of a #define (named constants), the brackets are actually part of the replacement value. For simple named constants that makes them irrelevant and only have meaningful value to you, the programmer. 100 = (100) = ((((((((((((((((((100))))))))))))))))))), etc. I have yet to find a situatio...
by 1000101
Nov 23, 2012 14:21
Forum: Community Discussion
Topic: Ramblings of crazed multi-threaders
Replies: 20
Views: 3159

Re: Ramblings of crazed multi-threaders

I think there is a bug in the internal queuing causing a rare race condition. Thread A finishes, tries to pop the next queued function, meanwhile thread B is in the middle of popping the next queued function. Thread A want's to access the head but thread B has a lock on the head, meanwhile thread B ...
by 1000101
Nov 23, 2012 14:15
Forum: Community Discussion
Topic: Bytes sizes, extended list
Replies: 7
Views: 418

Re: Bytes sizes, extended list

Although useful to know, it has nothing to do with fb and doesn't belong in it's wiki. Just like cleaning the dust out of your fans is useful to know but nothing to do with fb and therefore doesn't belong in it's wiki.
by 1000101
Nov 21, 2012 12:23
Forum: Beginners
Topic: global access?
Replies: 15
Views: 1318

Re: global access?

As namespaces are global, you can't restrict it's access. Namespaces are just globals with their own "section header" and may assume the names (from the programmers perspective) of it's parent namespaces. eg: Namespace fu Dim As Integer stache Namespace manchu Dim As Integer stache Sub Som...
by 1000101
Nov 21, 2012 12:14
Forum: Tips and Tricks
Topic: Using Framebased movement with Delta-timing
Replies: 11
Views: 1820

Re: Using Framebased movement with Delta-timing

Yeah, h4tt3n pointed out there may be issues with that code in the other thread. Not sure why, it doesn't happen to me (isn't that always the case?)

Anyway, I'll look into it and try to fix it.
by 1000101
Nov 21, 2012 11:37
Forum: Community Discussion
Topic: Ramblings of crazed multi-threaders
Replies: 20
Views: 3159

Re: Ramblings of crazed multi-threaders

Hello folks, I find this very interesting. My programs are getting so big and cpu-demanding that I cannot ingnore the benefits of mutithreading any more. However, 1000101 I'm not sure what to make of your code samples. The test_thread_pool.exe becomes unresponsive and has to be stopped with task ma...

Go to advanced search