Search found 20 matches

by Tiuri
Thu Sep 11, 2003 12:47 am
Forum: Feature Requests and Wishlists
Topic: pointers to arrays
Replies: 8
Views: 3065

Thank you again for your comments.
Talun: I did see some of the posts you refererred to, and now that I look at them better Tinman already used the method I illustrated above. Sorry about that. The one you liked by Danilo did not declare an array in the structure, so that you could not do things ...
by Tiuri
Wed Sep 10, 2003 10:15 am
Forum: Feature Requests and Wishlists
Topic: pointers to arrays
Replies: 8
Views: 3065

Hi Sergio,
thanks for your reply. I was aware that arrays in PB are always global, but I think there are several circumstances where being able to pass an array as a pointer still is very useful.

The first is that you may want to apply the procedure to different arrays in your application. For ...
by Tiuri
Wed Sep 10, 2003 10:00 am
Forum: Coding Questions
Topic: array bounds: bug or feature?
Replies: 3
Views: 1413

Thanks for clarifying that. On the basis of the documentation I had expected that Dim a.l(10) would give you 10 elements, especially given the example of a 2-dim array with the number of columns and lines. I am not familiar with the standard BASIC definitions, do BASIC arrays also start with index 0 ...
by Tiuri
Wed Sep 10, 2003 7:16 am
Forum: Coding Questions
Topic: array bounds: bug or feature?
Replies: 3
Views: 1413

array bounds: bug or feature?

I noticed something strange with the definition of array bounds
OpenConsole()
;
Dim a.l(10)

Structure array
a.l[10]
EndStructure

DefType.array b
n=10
For i=0 To n : a(i)=i :Next
For i=0 To n : b\a[i]=i :Next

n.l=Val(Input())
CloseConsole()
End

In the above code you can use elements 0-10 of ...
by Tiuri
Wed Sep 10, 2003 6:42 am
Forum: Feature Requests and Wishlists
Topic: pointers to arrays
Replies: 8
Views: 3065

Below a short program to demonstrate what is currently my best workaround trick for the problems mentioned above. Probably the solution is extremely obvious to everybody else, but maybe I will save somebody some time.
Structure FakeArray
x.l[4194304] ; array of size larger than you ever will use ...
by Tiuri
Wed Sep 03, 2003 3:03 am
Forum: Feature Requests and Wishlists
Topic: pointers to arrays
Replies: 8
Views: 3065

pointers to arrays

As far as I understand PB currently only supports pointers to structures, labels and procedures. I would like to be able to pass a pointer to an array to a procedure, because procedures that perform an action on an array can be very useful.

I am looking for something like

Dim array.l(100)
Dim ...
by Tiuri
Tue Sep 02, 2003 11:32 pm
Forum: General Discussion
Topic: Hyperthreading
Replies: 3
Views: 2799

Num3: Maybe I did not explain my test correctly: my claim of 45% performance increase was not based on looking at CPU utilization, but just by measuring the time it takes the run the program. The results were (at 30 timesteps per display)
threaded mode: 27.16 seconds
normal mode : 39.22 seconds

I ...
by Tiuri
Tue Sep 02, 2003 6:09 am
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

Because the main emphasis of this topic has shifted to hyperthreading in general rather than my original question, I submitted a new post in the General Discussion Section under the topic Hyperthreading to continue some of discussion started here.
by Tiuri
Tue Sep 02, 2003 5:49 am
Forum: General Discussion
Topic: Hyperthreading
Replies: 3
Views: 2799

Hyperthreading

Hi all,

I decided to submit this new post to discuss some of the subjects raised in regard to hyperthreading in the responses to my earlier question about CPU utilization in the Beginners section, since the topic is not very close to my original question.

In regard to Ryan's (RJP Computing ...
by Tiuri
Fri Aug 29, 2003 1:00 am
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

Hi,

thanks for all you comments so far.
LJ : I checked the settings (apparently named somewhat differently under XPHome) but they were already set be optimized for programs, not background tasks. So this is not likely to be the problem.

I haven't figured things out yet with any certainty, but now ...
by Tiuri
Thu Aug 28, 2003 2:24 am
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

Hi Ryan,

Thanks for your reply. I checked and I -indeed- have 2 graphs for CPU history, so I guess I have hyperthreading. The fact that i get exactly 50 % had made me think about this possibility before. (But I had already tried to implicate hyperthreading for another problem I posted about ...
by Tiuri
Wed Aug 27, 2003 11:43 pm
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

Hi Oldefoxx,

I guess in general you shouldn't overload your computer, but for me speed will be important, since I hope to code some scientific simulation/modelling problems that may take hours to run. So a factor of two is a big thing.

I still think something is not working the way it should ...
by Tiuri
Wed Aug 27, 2003 8:50 am
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

OK, here some more information about my CPU usage problem that may or may not help:

running PB app : 50% PB 50% Idle
running two PB apps : 33 % PB1 33% PB2 33% Idle
PB app + Moviemaker : 75% Movie 25 % PB app 0% Idle

I checked the priority of the different tasks, PB apps and Moviemaker both have 8 ...
by Tiuri
Wed Aug 27, 2003 6:49 am
Forum: Feature Requests and Wishlists
Topic: ImageGadget returning Events
Replies: 4
Views: 2611

ImageGadget returning Events

I understand from the Help files that ImageGadgets do not return Events such as mouseclicks.
I think it would be useful for simple applications that involve some interaction with an image but do not need very fast drawing (using the Sprite/Screen commands) to have this functionality.

This may be ...
by Tiuri
Wed Aug 27, 2003 4:43 am
Forum: Coding Questions
Topic: CPU utilization
Replies: 21
Views: 6610

My system:
WinXP Home SP1 , P4 2.8C , 1GB pc3200 RAM, Radeon 9600 Pro graphics.

I hope it is not due to the fact that I am running WinXP Home. But I have seen other applications (for instance Windows MovieMaker) getting close to 100 % CPU.