Yeah,
Gotto work with my VB.Net graphic application for days, do any possible type
of code optimization, check for unhandled errors and finally come up with
sth that can't process 2D graphics and photos at an acceptable speed. I have
heard things about the virtual machine of Mr. Net, that it can run my app at
a high speed....but could never compare it with Java VM and its speed. Then,
what should i do? Go and learn C++ ? Do i have time for it? Can't Microsoft
enhance its .Net VM to run VB.NET applications at a C++ program speed?
.....And how long should we wait for reaching the Native speed?....
(and why the same managed C++ application run faster? We need more liberty
guys..)
(using VB.NET 2003 + Framework 1.1)
i stay here.... 6 2031
Try using DirectX. No need to learn C++ and performs a variety of 2D and 3D
functions for you [already written in C++]
"Ham Come>" <mdz-+%@hotmail.> wrote in message
news:e3******** ******@TK2MSFTN GP15.phx.gbl... Yeah, Gotto work with my VB.Net graphic application for days, do any possible
type of code optimization, check for unhandled errors and finally come up with sth that can't process 2D graphics and photos at an acceptable speed. I
have heard things about the virtual machine of Mr. Net, that it can run my app
at a high speed....but could never compare it with Java VM and its speed.
Then, what should i do? Go and learn C++ ? Do i have time for it? Can't
Microsoft enhance its .Net VM to run VB.NET applications at a C++ program speed? ....And how long should we wait for reaching the Native speed?.... (and why the same managed C++ application run faster? We need more liberty guys..)
(using VB.NET 2003 + Framework 1.1)
i stay here....
For pure performance, C++ will beat .NET languages in graphics (at least in
most cases). The major .NET benefits is the ability to get deep into the
WIndows API without API calls, the speed of development, etc.
This is not saying .NET is not fast. I have an file manipulation application
that achieves astounding speeds (rips through an 8GB file (76 columns fixed
width) in less than 20 minutes on 1.6 GHz P4 with 512MB RAM.
One issue with VB.NET is when you use the "Crutches" in the language. The
extra weight can kill your app if max perf is the issue.
---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** ************
Think Outside the Box!
*************** ************
"Ham Come>" wrote: Yeah, Gotto work with my VB.Net graphic application for days, do any possible type of code optimization, check for unhandled errors and finally come up with sth that can't process 2D graphics and photos at an acceptable speed. I have heard things about the virtual machine of Mr. Net, that it can run my app at a high speed....but could never compare it with Java VM and its speed. Then, what should i do? Go and learn C++ ? Do i have time for it? Can't Microsoft enhance its .Net VM to run VB.NET applications at a C++ program speed? .....And how long should we wait for reaching the Native speed?.... (and why the same managed C++ application run faster? We need more liberty guys..)
(using VB.NET 2003 + Framework 1.1)
i stay here....
"Cowboy (Gregory A. Beamer) - MVP" <No************ @comcast.netNoS pamM> wrote One issue with VB.NET is when you use the "Crutches" in the language. The extra weight can kill your app if max perf is the issue.
Specifically relating to graphics;
A.
Dim bmp as Bitmap = New Bitmap(3000,500 0)
vs
Dim bmp as Bitmap = New Bitmap(3000,500 0, Me.CreateGraphi cs)
B.
frmGraphics.Dra wImage(bmpSourc e, Dest, Src, GraphicsUnit.Pi xel)
vs
frmGraphics.Dra wImageUnscaled( bmpSource, 0, 0)
The second option in both A and B can significantly increase
performance in performance critical code. That is to say, there
are performant routines in the .Net framework, the trick is knowing
where they are, and how to put them to use...
LFS
Let me clarify it:
I work currently on a bitmap editor and want to edit images pixel by pixel.
I mean using " GetPixel(i,j) and SetPixel(i,j,co lor) "....
The application has to go through the whole pixels and do the operation by
using" For-Next" loops. It works fine on upto 1000 * 800 bitmaps, but on
higher
resolutions, event with a separate thread for this Sub, the result is really
frustrating. My P4 2.4 GHZ computer hangs and this some times takes a minute
for a simple operation.....
And for the guy who said to use DirectX ....
First of all, direct X does not give all the facilities of GDI+....
Second, I have a lot of limitations concerning the size of my App and its
distribution...
That's why I never go towards DX for those GDI+ operations...
Thanks...
"Larry Serflaten" <se*******@usin ternet.com> wrote in message
news:u4******** ******@TK2MSFTN GP11.phx.gbl... "Cowboy (Gregory A. Beamer) - MVP" <No************ @comcast.netNoS pamM> wrote
One issue with VB.NET is when you use the "Crutches" in the language. The extra weight can kill your app if max perf is the issue.
Specifically relating to graphics;
A. Dim bmp as Bitmap = New Bitmap(3000,500 0)
vs
Dim bmp as Bitmap = New Bitmap(3000,500 0, Me.CreateGraphi cs)
B. frmGraphics.Dra wImage(bmpSourc e, Dest, Src, GraphicsUnit.Pi xel)
vs
frmGraphics.Dra wImageUnscaled( bmpSource, 0, 0)
The second option in both A and B can significantly increase performance in performance critical code. That is to say, there are performant routines in the .Net framework, the trick is knowing where they are, and how to put them to use...
LFS This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Beach Potato |
last post by:
Dear Y'all:
I'm about to start porting a big old project written in anscient version
of Delphi to something more stable, robust, supportable and maybe even
portable. Since I haven't seriously touched C for large implementations,
I'm seeking advice on what to use for development.
My ultimate goal is to spend as less time on it as possible.
I'll be writing it in Windows 32-bit environment, probably Win2000 or
Win98. Planning to use a...
|
by: Patric |
last post by:
Hi
I'm having some problem getting the following result.
I have 2 tables
Drivers
--------
DriverID int (PK)
DriverName varchar(50)
|
by: borges2003xx |
last post by:
hi everyone
can someone suggest me where find a lot programming tricks for
achieving the top speed in python?
thanks everyone for patience
|
by: Beeman |
last post by:
I am looking for a good control that would display/print JPEG
images in Access 97. The existing Image controls, even with
the JPEG filters, are very slow - and I know there are better
ones out there (preferably freeware).
TIA...
- Blaine
========================================
|
by: MFC |
last post by:
Ok, after three C# books, (C# How to Program, Programming in the Key
of C#, and C# Weekend Crash Course) and three weeks, I believe I have
tried everything to make a certain form function correctly. I am
trying to learn C# after playing around for a bit with procedural
programming with PHP, not OOP, and believe I have learned quite a bit
in three weeks, just not enough to accomplish this one task.
If anyone has a bit of free time and...
| |
by: Brett Hofer |
last post by:
Does anyone know of a good component for audio(.WAV) playback that supports
double-speed/normal/half-speed? I need to provide this control
in an .aspx page and control it using C#.
I have tried using the DirectX playback but it is very limited and doesn't
support variable speed from what I have seen. I've also read
postings that say to avoid it... Any suggestions would be appreciated :)
Thanks,
Brett++
|
by: mistral |
last post by:
Here is javscript clock:
http://javascript.internet.com/time-date/mousetrailclock.html
which I want adjust a little:
1. I want replace the days of week/year/date in external circle with
just custom text: 'www.company.com'
2. I want to reduce a little rotation speed of this text.
3. I want to fix a clock in some place, no need in mouse trail effect.
|
by: ra7l |
last post by:
Hi All ..
First Thanks to All For Help Me ..
ok ..This Code it Move Train but one errore small..
Where Correct Cods
Thanks All ..
:)
|
by: lakshmiram.saikia |
last post by:
Hi,
I need to do the following operation :
'" I have two mac addresses, say X and Y,where X is the base mac
address, and Y is the nth mac address from X, each incremented by one.
Now,I want to check if Z falls within . I need to do some check
only when Z is one of the mac addresses in this range. I am looking
for an optimized method to do this as this
check is going to be called in a high priority callback task, and
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |