123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|713|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Issues with Blitz in Vista?

Wed, 02 Apr 2008, 15:39
Forklift_Fred
I've had some feedback regarding the file navigation thing I was working on...

It appears that Windows Vista doesn't like it

First question I have, is it a general issue with Blitz?

Second question, does Blitz have issues with USB drives?

The thing is, if it is browsing a folder with just files it takes a while to identify them all, if it has sub-folders it takes a long time to identify them and and if it has sub-folders and files you might as well go for a walk.

It's working perfectly in XP, it takes a while to examine big folders but nothing to worry about. In Vista it sounds like files are slow and folders are slower.

I mentioned USB drives because that is the feedback I have received. I have asked how it performs on his fixed drive but haven't heard back yet...

It's very little more than the code posted here originally and everything else is OK.

|edit| If anyone wants to try it again...

|edit|
Code removed because it was just wrong! Check my next post for the correct code!
|edit|


|edit|


-=-=-
Come rain or shine...
Wed, 02 Apr 2008, 16:06
JL235
I run Vista (WOOT!) so I quickly tried out your code. I found a bug (or at least some strange behaviour). I presume Blitz is to blame, although I'd doubt it's entirely wrong. Just giving results it shouldn't. See if you can spot it:


Something else, if you making GUI stuff then don't draw repeatedly. Real GUI's don't because it saves on ALOT of CPU time. Lets say the user interacts with the GUI once on every second. Currently your drawing on every frame so your drawing 60 times a second (on my machine). If you only draw when the user interacts then you draw once per second. In that example there is a drop in drawing of 98.333%! Although you should also put in a delay at the end of the frame if it didn't draw, so that you aren't spending that time just checking if you should draw.

In reality the user could go for minutes before they click on anything, so it makes a big difference in performance.
Wed, 02 Apr 2008, 16:37
Forklift_Fred
Bit confused by that. I seem to have posted a badly cobbled together version...

The only problem I see (compared to what I was expecting) is that the scrollbar is missing... And the odd spacing that I sorted out.

Try this version



My next move was to treat files and folders separately so the folders get listed first rather than mixed in but that's a minor issue. I take on board what you say about the graphics and maybe I'll try and deal with that too but that's not the issue as far as I'm aware. I'm told it freezes after clicking on a folder (ie no more highlighting or anything)

-=-=-
Come rain or shine...
Wed, 02 Apr 2008, 17:36
JL235
No freezing, but if you notice there are more folders in your version then in my C: folder. This includes 'Documents and Settings', which doesn't actually exist in Vista (it's called 'Users' instead). The other extras were 'boot', 'System Volume Information' and '$Recycle.Bin'.

I think it does actually exist, just like the other extra folders, however as a user I really shouldn't be shown them or be able to have access. Plus when I go into 'Documents and Settings' there is no way out (no . or ..).

It also did scroll for me automatically as I moved the mouse down the list, but no scroll bar.
Wed, 02 Apr 2008, 17:47
Forklift_Fred
It's not checking for hidden or system attributes. The 'Users' folder is listed separately. Again, I take your point. It's not something I had considered. I'll add it to the to-do list.

In the newer version I posted there is now a button to go up a level and buttons for all the drives so that issues solved.

You'll tell me I'm making my button oddly as well I suspect but until I have any proper images designed/made/added it's the easiest way of doing it.


If you don't have any freezing, do you think it could be the external USB drive that's causing it?

Finally, Are you saying just by pointing the mouse it scrolled? I've no idea why it did that The scroll bar should be fully function in the new code as well.

Thanks for looking

-=-=-
Come rain or shine...
Wed, 02 Apr 2008, 19:12
Yo! Wazzup?
I added a bit to it, but it's pretty dumb

Click on a .txt file.

I tried to get it to work with html files, but it won't work




and BTW, like the way you did the image

-=-=-
Hi everyone! I'm new to Blitz and only 10 years old so all things coding is gush to me
Thu, 03 Apr 2008, 00:22
Afr0
As for the freezing:

Did you try compatibility mode for Windows XP SP2? And running the program as an administrator?

Right-click on the program's icon, select 'Properties', and click on the 'Compatibility tab...

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Thu, 03 Apr 2008, 07:14
JL235
I didn't find it freezing once.
Thu, 03 Apr 2008, 08:28
Paul
Works on my vista without problems, even with my USB drive

Thu, 03 Apr 2008, 08:42
JL235
Oh and it checked my USB, the fake disk drive my USB makes and the DVD drive all perfectly fine on mine. Infact I was impressed with how quickly it ran, switching to the drives was all instant.
Thu, 03 Apr 2008, 11:25
Forklift_Fred
The drive swapping is impressive isn't it?

It doesn't report if there isn't a disk in a CD/DVD drive though... maybe a quick If (number_of_files=0) would be worth adding. It reads "." and ".." as files/folders so if it's an empty folder it will still count as greater than zero but no disk won't have them.

It's good to know that nobody else has had any real issues though. I'll probably never know why mu guinea pig had problems but at least I know he is the only one

Thanks everyone!

-=-=-
Come rain or shine...