Search found 1667 matches

by Rescator
Sat Dec 20, 2014 6:18 am
Forum: Applications - Feedback and Discussion
Topic: Readspeed Test v2.10 Test HD/OS and chunksize speeds.
Replies: 26
Views: 14625

Re: Readspeed Test v2.7 Test HD/OS and chunksize speeds.

Improved the text in the message requester a little, example: Readspeed Test v2.7 The baseline is the slowest chunksize, and shown as 100.00 % Based on 40 files and 1971.88 MB of data (processed 35493.81). Test took 4.167 minutes, speed was 141.98 MB/s (1135.80 mbit/s). 16384 chunksize speed = 100.0...
by Rescator
Fri Dec 19, 2014 8:42 am
Forum: Coding Questions
Topic: FileBuffersSize(#PB_Default, 0) does not work.
Replies: 10
Views: 3307

Re: FileBuffersSize(#PB_Default, 0) does not work.

If #PB_Default is used as this parameter then the new buffer size will apply to all newly opened files with OpenFile(), CreateFile() or ReadFile(). Then that text must be fixed to read: #1 If #PB_Default is used as this parameter then the new buffer size will only apply to existing files opened/cre...
by Rescator
Wed Dec 17, 2014 11:11 am
Forum: Coding Questions
Topic: FileBuffersSize(#PB_Default, 0) does not work.
Replies: 10
Views: 3307

FileBuffersSize(#PB_Default, 0) does not work.

I found while messing around with some code that FileBuffersSize(#PB_Default, 0) does not work. For a long time I could not understand why the filereading code was so slow (I used a custom buffering for a test) and I thought that instead of turning off the buffer for each file/handle again and again...
by Rescator
Wed Dec 17, 2014 11:09 am
Forum: Applications - Feedback and Discussion
Topic: Readspeed Test v2.10 Test HD/OS and chunksize speeds.
Replies: 26
Views: 14625

Re: Readspeed Test v2.6 Test HD/OS and chunksize speeds.

Redid the code, now the Random seek and Sequential read are both done (no more selection on which to run), random seek will now also read the same amount of data as the sequential read. This does mean tests will take longer, but I also removed the smallest chunksizes and the largest ones (v2.5 I was...
by Rescator
Tue Dec 16, 2014 5:18 am
Forum: Game Programming
Topic: PureBasic OpenGL Version?
Replies: 24
Views: 14346

Re: PureBasic OpenGL Version?

Gotta love thread necromancy (sometimes). Here's an example on how to fetch the OpenGL version. A few things to keep in mind though, only call Get_OpenGL_Version() after you have used OpenScreen() or OpenWindowedScreen() trying to call this before that (but after InitSprite() will not work. And obvi...
by Rescator
Tue Dec 16, 2014 4:49 am
Forum: Announcement
Topic: Support for Ascii compilation ends after the next LTS cycle
Replies: 94
Views: 89149

Re: Support for Ascii compilation ends after the next LTS cy

I mentioned that it might make sense to add a special ASCII compatibility library, basically a simplified version of the string library that allows us to apply basic operations on "ASCII memory". + 280569792841 Which is silly since that would require a ASCII compatibility library with a m...
by Rescator
Tue Dec 16, 2014 4:27 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] New OS version constants
Replies: 11
Views: 5227

Re: New OS version constants

#PB_OS_Windows_Future is basically "I got no clue what windows this is". The value may change with any PureBasic release so you should always use the constant and do not use hardcoded values. If you do stuff like "If OSVersion() < #PB_OS_Windows_Future" then on Windows 8.1 you ge...
by Rescator
Tue Dec 16, 2014 4:07 am
Forum: Feature Requests and Wishlists
Topic: [Imlemented] PB-Constants for Version Info Fields
Replies: 14
Views: 6732

Re: PB-Constants for Version Info Fields

Its not ideal, but you can define those constants yourself in the compiler options under "Constants". This way there are still two places to update if you change the version, but at least both are in the compiler options and not somewhere in the source code. A better solution would be if ...
by Rescator
Tue Dec 09, 2014 2:31 am
Forum: Tricks 'n' Tips
Topic: TimeZoneOffset()
Replies: 16
Views: 7484

Re: TimeZoneOffset()

Thunder93 wrote:Another adjustment needs to be made.. on the minute.
Done!
Thunder93 wrote:wDayOfWeek 0 starts at Sunday, not Monday.
Damn, should have paid more attention to the official documentation.
Here in Norway the week starts on Monday and not Sunday.
Example updated Thanks for catching this.
by Rescator
Wed Dec 03, 2014 7:53 pm
Forum: Assembly Programming
Topic: memory tips for ultra low jitter
Replies: 1
Views: 6784

Re: memory tips for ultra low jitter

A comment/response to this is found under off-topic at http://www.purebasic.fr/english/viewtop ... 17&t=61134
by Rescator
Wed Dec 03, 2014 7:52 pm
Forum: Off Topic
Topic: Audio science
Replies: 3
Views: 3086

Audio science

This is in response to memory tips for ultra low jitter , I didn't feel it appropriate to to reply to that thread directly (as my issue is not with the code but the reason/purpose of it), so into off-topic we go instead. :) The slight jitter not even allowed software, the following Tips will help. D...
by Rescator
Wed Dec 03, 2014 6:59 pm
Forum: Tricks 'n' Tips
Topic: TimeZoneOffset()
Replies: 16
Views: 7484

Re: TimeZoneOffset()

Please be aware when handling timezones that some parts of the world have half hour timezone offsets, this is why the OS uses minutes instead of hours for timezone offsets. http://www.timeanddate.com/time/time-zones-interesting.html Something like Debug "Hour Time Offset = " + Str(TimeZone...
by Rescator
Wed Dec 03, 2014 6:57 pm
Forum: Tricks 'n' Tips
Topic: Current Date As UTC Number aka universal datestamp
Replies: 0
Views: 2068

Current Date As UTC Number aka universal datestamp

You might wonder what use GetSystemTime_() is, myself I'd use it for database entries or filenames etc. as it's guaranteed to be unaffected by timezones and offsets. The benefit of this over FormatDate() is that this is UTC thus not affected by timezone/Daylight savings. The resulting number is also...
by Rescator
Sun Nov 16, 2014 12:37 pm
Forum: Feature Requests and Wishlists
Topic: Add "no font mapper" switch to LoadFont()
Replies: 4
Views: 2765

Re: Add "no font mapper" switch to LoadFont()

Automatic use of the font mapper is the PureBasic way. Other BASICs don't use it. I am confident that the compiler designers made a decision to use the font mapper, and I seriously doubt if it was a mandatory inclusion. And its use does not guarantee that the font will render correctly, just a guar...
by Rescator
Sun Nov 16, 2014 12:10 pm
Forum: Tricks 'n' Tips
Topic: TimeZoneOffset()
Replies: 16
Views: 7484

Re: TimeZoneOffset()

Fixed the example, I tested it an found it added rather than subtracted, no clue why; anyway, it's fixed now.
No changes was made to TimeZoneOffset()