![]() |
|
|
#76 | |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
Quote:
The best I could come up with is grabbing it from the registry: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Cen tralProcessor However, on my processor, it reports 1.6 GHz or 2.66 GHz when it should be 2.79 GHz. Suggestion: Why not make the CPU do mock work that BOINC does, crunch a few numbers, then estimate it over x number of hours at y % CPU usage? That way, it would be processor indepenedant. You should have enough information to create a forumla that gets close. As far as I know, a bunch of double precision multiply and divide should suffice for simulating work.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
| The Following User Says Thank You to FordGT90Concept For This Useful Post: |
|
|
#77 | |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Quote:
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
|
#78 |
|
WCG Team Assistant
Join Date: Sep 2009
Location: North Carolina, US
Posts: 10,651 (7.93/day)
Thanks: 8,239
Thanked 9,314 Times in 4,257 Posts
|
Well, if it gives bogus values like that, having the user enter it manually probably makes the most sense: if the program gives values that aren't even close to the real values, then it's not very useful
__________________
Crunching (64 Threads + 896 CUDA Cores + 6272 Shaders): i3-2100@ 3.1 + HD7850 -- Atom D510 @ 1.66 -- C2D-M T9600 @ 2.8 -- i7-3612QM @ 2.8 -- i7-860 @ 2.9 + HD7950 -- i7-2700k @ 4.4 + 2xGTX470 -- PentDC-M T4200 @ 2.0 -- i7-920 @ 3.83 + 3xHD7770 -- DP Xeon E5420 @ 2.5 + HD7930 -- E1600 @ 2.4
|
|
|
|
|
|
#79 |
![]() Join Date: Jun 2009
Location: Mauritius
Posts: 322 (0.23/day)
Thanks: 15
Thanked 54 Times in 43 Posts
|
i think user input is better,
user can input different speed and get an idea if overclocking is worth it or not
__________________
- ---
Last edited by mosheen; Feb 28, 2010 at 04:44 PM. |
|
|
|
| The Following User Says Thank You to mosheen For This Useful Post: |
|
|
#80 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Ok ends up that my error checking was severely flawed, and nobody ever caught it because nobody put in 9000 MHz as their CPU frequency. So, to fix this for now, I will take out error checking until I get my homework done. When I am finished I will find a good solution to the problem.
Edit: Expect a new version at 6pm.
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
#81 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
A suggestion on that too:
If the input is invalid, set the usercontrol's BackColor to Pink. If the input is valid, set it to White. Do this in the TextChanged event. For example: Code:
Private Sub txtClockSpeed_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles txtClockSpeed.TextChanged
Try
Convert.ToUInt16(txtClockSpeed.Text)
txtClockSpeed.BackColor = Color.White
Catch
txtClockSpeed.BackColor = Color.Pink
End Try
End Sub
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#82 | |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Quote:
Code:
Private Sub Text1_Keypress(KeyAscii As Integer)
Dim str As String
str=".0123456789"
If KeyAscii>26 then
If Instr(str,chr(KeyAscii))=0 Then
KeyAscii=0
End if
End If
End Sub
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
|
#83 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
Yeah, Try...Catch is much better. It will throw an exception, and subsequently catch it, if the conversion failed.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#84 |
![]() Join Date: May 2009
Location: South California, The desert.
Posts: 1,352 (0.92/day)
Thanks: 120
Thanked 263 Times in 221 Posts
|
It said i would producting
![]() Thats what it estimated for my WCG Nice little program
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
#85 | |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Quote:
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
|
#86 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
Three more suggestions:
1) Autocheck BOINC version according to CPU architecture. This can be done via: Code:
System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE")
Taking it a step further, find boinc.exe or wcg.exe (not sure on that one) and detect if it is running 32-bit or not. I'm not certain this is possible though... 2) Auto-clear Speed and Usage when someone clicks in it. If Text = "MHz", Text = "" on text change, for example. 3) Maybe accept GHz or MHz. If there is no decimal point, assume MHz. If there is a decimal point, assume GHz. I can type up some code for that too if you want it.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#87 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
I was going to have it find boinc.exe or wcg.exe but I realized some people install them in different places.
I did not put in auto checking for a 32 bit or 64 bit cpu cause some people run 32 bit boinc instead of 64 on their 64 bit system. And for the ghz or mhz thing, I think I will stick to mhz only. Edit: Regarding processor architecture, I realized that the mobile versions on the C2D were thought of the same as the desktop time.
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
#88 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Also, here is the latest version.
EDIT: FordGT90Concept, you are in the credits.
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
#89 |
![]() Join Date: May 2008
Location: Iowa, USA
Posts: 3,287 (1.80/day)
Thanks: 557
Thanked 597 Times in 437 Posts
|
i was wandering if you could put in how long it would take to get the number it says like a i7 at 100% is around 22k but how long does it take to do that like in a hour, 22hours
. you know
__________________
|
|
|
|
|
|
#90 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
It was a lot of work but I finally cracked it:
Code:
Private Declare Function IsWow64Process Lib "kernel32" (ByVal hProcess As IntPtr, ByRef Wow64Process As Boolean) As Int32
Public Function IsRunningApp64Bit(ByVal name As String) As Boolean
If Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") = "AMD64" Then
Dim processes As Process() = Process.GetProcessesByName(name)
If processes.Length > 0 Then
Dim wow64 As Boolean
Try
Dim ret As Int32 = IsWow64Process(processes(0).Handle, wow64)
If ret > 0 Then
If wow64 = False Then
Return True ' Not emulated (32-bit on 32-bit or 64-bit on 64-bit).
Else
Return False ' Emulated (32-bit on 64-bit).
End If
Else
Return False ' There was a problem.
End If
Catch
Return False ' Problem with getting process info.
End Try
Else
Return False ' Process not found.
End If
Else
Return False ' 32-bit OS.
End If
End Function
Edit: Required imports: Code:
Imports System Edit: I only have BOINC (64-bit) installed here so I don't know what the process name for WCG would be. Just make sure to drop the ".exe" and it should work.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } Last edited by FordGT90Concept; Feb 28, 2010 at 07:28 PM. |
|
|
|
| The Following User Says Thank You to FordGT90Concept For This Useful Post: |
|
|
#91 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
I understand but an unsure if I want to add it in. The program is after all PPD Estimator, the units being in days!
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
#92 | |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Quote:
Maybe one person has this calculator on 1 PC, and then they want to calculate their other PC's and not have to put this program on their computers, then this should work. NOW: I like the program F@HMon. Ever used it? It calculates the time a WU will take to complete, PPD, etc. If we start making this all automated, I will make a program like F@HMon for WCG, HOWEVER: Is there a program like this already? If not, I will start to automate all parts of the calculator and start work on WCGMon.
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
|
#93 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
F@H just calculates F=ma over and over and over again. The workload doesn't change so it is easy to estimate how long each individual WU will take given how many calculations there are to perform. WCG/BOINC, on the other hand, handle a multitude of different kinds of tasks so it isn't easy to accurately estimate how long any given task will take to complete. Not to mention, WCG/BOINC already do this (see Tasks tab).
By the way, I'd use that code to select the default BOINC type (32-bit or 64-bit). The user can easily check the other option if it isn't for their computer. Edit: Another suggestion: I assume the code to calculate the points isn't very intensive. As such, you could easily remove the Calculate button and make TextChanged, SelectedIndexChanged, and CheckedChanged all point to the Calculate code. That way, if everything is valid, it will calculate it as the information becomes available.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } Last edited by FordGT90Concept; Feb 28, 2010 at 08:21 PM. |
|
|
|
|
|
#94 | |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Quote:
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
|
|
|
#95 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
The 32-bit/64-bit code? That should occur only once on startup (in the Form constructor).
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#96 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Ok as promised:
0.1.2: Many fixes. Please put in original post [Ion]. EDIT: Also, FordGT90Concept, the button looks so pretty don't make me remove it! (I am changing code as we speak) EDIT2: O wow errors are flipping out, computer crashed... need to fix my error reporting badly!
__________________
CPU-Z validation sig pics temporarily blocked |
|
|
|
| The Following User Says Thank You to PVTCaboose1337 For This Useful Post: |
|
|
#97 |
|
Senior Moderator™
Join Date: May 2007
Posts: 7,050 (3.23/day)
Thanks: 2,165
Thanked 1,837 Times in 1,103 Posts
|
Worked fine for me.
Neat work! |
|
|
|
| The Following User Says Thank You to Black Panther For This Useful Post: |
|
|
#98 |
|
Graphical Hacker
Join Date: Feb 2006
Location: San Antonio, Texas
Posts: 7,478 (2.81/day)
Thanks: 798
Thanked 1,174 Times in 834 Posts
|
Now I want some screenshots if you don't mind. Try putting putting non-integers into the field, etc.
EDIT: Look at what we did over a weekend guys! Screenshot is of all the versions of the program! ![]() Now, does anyone have an idea for a better UI?
__________________
CPU-Z validation sig pics temporarily blocked Last edited by PVTCaboose1337; Feb 28, 2010 at 09:24 PM. |
|
|
|
|
|
#99 |
|
Senior Moderator™
Join Date: May 2007
Posts: 7,050 (3.23/day)
Thanks: 2,165
Thanked 1,837 Times in 1,103 Posts
|
I'm not sure if you were asking for something like this?
Last edited by Black Panther; Feb 28, 2010 at 09:38 PM. |
|
|
|
|
|
#100 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,572 (6.29/day)
Thanks: 1,752
Thanked 2,596 Times in 1,960 Posts
|
PropertyGrid! XD
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my PPD | xBruce88x | Folding@Home | 13 | Nov 11, 2009 02:40 PM |
| Ppd? | ShadowFold | World Community Grid (WCG) | 8 | Oct 6, 2009 11:33 PM |
| System Flowrate Estimator Spreadsheet V1.7 | d44ve | Overclocking & Cooling | 5 | Nov 7, 2007 01:24 AM |
| The ultimate PSU estimator is here! | MrSeanKon | Cases, Modding & Electronics | 11 | Sep 10, 2007 10:14 AM |
| simple ? for a simple mind | freeboy | Motherboards & Memory | 3 | Feb 21, 2007 08:33 PM |