Quote:
Quote:
juk,
What is the feasibility of polling the memory space of party clients running under another user's account?
It would be fantastic if we could get away with running just a single copy of FPHG.
Bhudson, I don't think the slowdown is because of the multiple copies of FPHG per se; it's because of the work that the multiple copies are doing scanning the memory spaces of the many Party clients.
If you had one instance of FPHG reading the memory spaces of multiple clients, it would be doing the work of multiple FPHG's, and I believe you'd have nearly the same impact. You'd save some context-switching time for the CPU, but the bulk of the time 'spent' by FPHG is spent reading and examining memory, which is a time-intensive process if you need to do it over and over. It doesn't matter that much whether the reading of each Party is run by a different FPHG, or if all of them are done by one FPHG, the same amount of reading has to get done.
There is, however, room for improvement from optimizing the code that does the reading, and I'm sure that will happen in due time.
To answer the first question, then it is probably possible to write FPHG to be able to run as a service and therefore be able to scan all instances of the Party Poker client, in different user areas, using just a single copy of FPHG (I think, but I'm not 100% sure that it will have to be written as a service, as I doubt the Windows operating system will allow one process to read another processes's memory within another user area - this would be a huge security flaw...).
But as Mogobu already pointed out, the way FPHG works is to poll the memory of the Party Poker clients and this is a serial operation (meaning that if you have two Party Poker clients opened simultaneously then there is twice as much work for FPHG to do, three clients and three times as much work to do), so there would be very little advantage in having a version of FPHG which could read across multiple user areas (other than to save time opening multiple copies of FPHG).
Helpfully after the weekend when I get more time, I am going to try to update and optimise FPHG (I have spent no time as of yet trying to optimise the code, so there is likely a lot that can be done to speed things up).
I think it can probably do with having some kind of user interface added, and I'm also going to try to make some kind of 'fake empire installation' to save all the repeated problems/questions resulting from the fake EmpirePoker.exe method of getting it to work with Poker Tracker.
Juk