Jump to content

Patrick PREMARTIN

Members
  • Content Count

    347
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Patrick PREMARTIN

  1. Hi From the contacts I have from time to time following presentations or training courses, it seems that I'm better known for the video game coding part of my hobby than for the other stuff. It's true that I find it more fun (especially to stream on Twitch), but I also have utilities for Delphi developers created to simplify my life that I make available as binaries and source code on my GitHub account. App Stores Screen Captures Generator : to generate all the needed images from your screen captures when you have to publish your softwares on current app stores Copyright Pascal Projects : to add a copyright text in the header of each PAS/DPR files of a folder tree DProj To Windows Setup : to generate the Windows setup from Delphi deployment wizard data. It uses Inno Setup to create the install program and Exe Bulk Signing to sign the exe files. Exe Bulk Signing : a local and network signing program for Windows executables (exe+msix). It has an API you can use to integrate it in your projects like I did with "DProj To Windows Setup". Folder to FMX Image List : to create a FireMonkey TImageList to copy paste in your project or in a data module unit from all images in a folder tree. It fills the multires bitmaps depending on file names. Google Play Developer Banner Generator : to create a picture to use has your Play Store developer banner composed by a random collage of images you add to your project. I use it with icons of my Android apps. HTML Writer : to simply get HTML source code or WYSIWYG HTML content. I use Delphi HTML Components library in this program to have the WYSYWYG HTML editor and a memo for the source code tab item. Pic Mob Generator : my icons generator from basics layers or images, SVG, paths or rectangles. It export JPEG&PNG images, ICO and ICNS files. For the SVG I used RiverSoftAVG SVG Component Library, but next release will use Skia4Delphi. SM Code Generator : I use it in some multi players games, for EXE Bulk Signing API and client projects. The program generates Delphi code you only have to use in your projects to have a client / server solution to exchange formatted messages over IP. The library uses standard TCP sockets from Embarcadero (with no external dependencies). SVG Folder to Delphi Unit : to import SVG files as Pascal strings in your projects. I use it in some games with Skia4Delphi to show icons or sprites. The program generates a unit (compatible with Delphi 12.X and higher) with SVG found in a folder. Some of these programs are available from GetIt. The others will be submitted before the end of the year. The download links are on their GitHub repositories and will be added to their websites (which should be redirected to GitHub in the meantime). If you need changes in these programs or have suggestions, be free to tell here or as issues on their repositories. I'm also looking for ideas of simple tools to develop during live coding streams to show Delphi or web solutions. They are distributed as shareware programs. Contributions and sponsoring are welcome but not obligatory, and there are no program restrictions in the absence of a valid license. All features are available for free.
  2. Patrick PREMARTIN

    Some open sourced tools for Delphi developers

    SVG Folder To Delphi Unit has been released in version 2.0 today with FR/EN user interface, dark/light styles, the possibility to import SVG files from more than one folder in a Pascal unit. Now I allow to generate multilines (Delphi 12 Athens) or classic strings in the exported units. The generated units should work with previous Delphi releases, Lazarus and others Pascal environments. As an option I've added the export of a "GetBitmapFromSVG" method which I use in my games and the FMX games starter kit. If you want to use SVG files in a Pascal project this tool can help you. A sample of use of the generated unit is available at https://github.com/DeveloppeurPascal/SVG-cards/tree/main/lib-Delphi/SVG-Skia4Delphi The program is distributed as a shareware. It asks for a license number on startup but you can use it even if you don't buy for one. The v2.0 installer is only available for Windows. You can download it from https://github.com/DeveloppeurPascal/SVGFolder2DelphiUnit/releases
  3. Patrick PREMARTIN

    Object Pascal Card Framework

    I don't have installed Lazarus on my VM but I didn't see where you store the cards images in your source files. If you need some I've just created this repository from David Bellot SVG Cards with individual SVG images, PNG images and Delphi samples of use : https://github.com/DeveloppeurPascal/SVG-cards
  4. Patrick PREMARTIN

    Deploying Delphi 12.3 iOS App to iOS Device

    Hi Good to see it working. Do you have an antivirus on Windows ? (I've already seen strange behaviors with McAfee which locked files or blocked some network calls)
  5. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    It's probably done on the commit comment with an internal ticket number. No reason to put it in the source file on the comment visible by the public (= us).
  6. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    Thanks @Cristian Peța I've updated my sample project on https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-3711 Hope they found a way to optimize this for 13.
  7. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    I open the issue https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-3711 You can follow it by enabling the notifications after login on this URL (quality.embarcadero.com). The difference between TThread.Queue() and TThread.ForceQueue() happens in the main thread : in the first case the code is executed, in the second it's delayed to next message processing iteration. Unfortunately, the behavior is not the same on Mac and Windows and in this project the form is only refreshed on macOS, for Windows it's done at the end.
  8. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    Ok, in that case I confirm the big speed loss between 11.3 Alexandria and 12.3 Athens for this project, even with my changes. Did you opened an issue on QP or can I open it ?
  9. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    And to remove the Application.ProcessMessages, you can do that : I know the TThread.ForceQueue() has its detractors, but in this context it works very well. PS : it works for Mac, but the display is not done on Windows...
  10. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    Even if using visual components in threads is a real bad idea, in your case (because you stop the refresh), you can use Parallel.For() loop from System.Threading. It's a simple case where it works well.
  11. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    Hi @domus Just to be sure: do you really need TRectangle instances or is it only to draw cubes "falling" (to the right) on the screen ? In your loop, if they are outside the screen, do you need to change their Position.x value ? I understand why you used the Application.ProcessMessages, but for me it's like FreeAndNil() for Nick H. : never use it, find an other way. 🙂 I'll try your code, but i'm on an ARM Windows on Mac, it's "slow" by design.
  12. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    If you use Skia and have any things to draw on screen, enable other graphic libraries on other platforms and disable the raster by adding unit FMX.Types in your program and this after the GlobalUseSkia: PS : the "add code" tool don't work on my browser (latest Safari), I used QUOTE instead of it
  13. Patrick PREMARTIN

    Extreme slow-down in Windows FMX app UI since upgrading to 12.1

    Very strange. I didn't see this on my apps (but I mainly use them on macOS except for developers tools). Windows 24H2 (in a VM) had an bad effect under Parallels (and sometimes on "real" PC) but nothing seen linked to FireMonkey itself. Are you using the BringToFront often in your app ? Have the screens many layers of visual components? Do you use animations ? Do you use BeginUpdate/EndUpdate when you fill or draw things ?
  14. Patrick PREMARTIN

    Can't change icons in my app

    It's not what I read there : the splash screen images have been changes as some icons but not all. You should have all images like there :
  15. Patrick PREMARTIN

    Can't change icons in my app

    Thanks. In this file you only changed the splash screen images. i see nothing wrong in it.
  16. Patrick PREMARTIN

    Can't change icons in my app

    That's really surprising. So I have to ask again: are the splash screen images correctly specified in the project options? Would it be possible to share the DPROJ file (be careful with any passwords it may contain, such as the Android certificate password)?
  17. Patrick PREMARTIN

    Can't change icons in my app

    This is abnormal behavior. You shouldn't need to go back over it if you save the options properly after making changes. Does this happen in the latest version of Delphi or RAD Studio? Does it happen on old projects or projects created in this version?
  18. Patrick PREMARTIN

    Can't change icons in my app

    Try the blue arrow, it should refresh all the files.
  19. Patrick PREMARTIN

    Can't change icons in my app

    They made a strange choice for this windows UI. I know. The checkbox are there to select the files to deploy, they don't have an other effect. Select the line(s) you want to remove, click on the grey cross (third icon from the left) to remove it/them. I suggest to click on the "local path" column to order the list and have all artworks at the same place.
  20. Patrick PREMARTIN

    Can't change icons in my app

    In the deployment wizard files list, remove all ($bds)/bin/artwork(...) files. In Project / Options / Applications / Icons dialog, check what you have in your "splash screen" tab for the Android 32 release. Retry a Project / Build all and a Project / Deploy. This should fix the problem.
  21. Patrick PREMARTIN

    Can't change icons in my app

    You still have some FMX icons. Are you sure the sizes used on your device correspond to your images (or its for notification+splash screen) ? Did you tried to unzip your Android package or checked what images are in the android/release/ folder ?
  22. Patrick PREMARTIN

    Can't change icons in my app

    Go to Project / Deployment menu to access the deployment wizard. In the list of files included in your release you perhaps have old files and new ones. I know it should never happen, but I've seen it in the past. Remove the wrong lines or use the blue array to restore default values. It will recalculate the needed files when you deploy next time and should use the good pictures.
  23. Patrick PREMARTIN

    Can't change icons in my app

    In some are cases it happened old images stay in the deployment wizard. Check in it if you have previous images and clear the list or remove only the files you don't want. Sometimes (more probable) the files are the good ones but there is a cache on the device which doesn't want to refresh the icon. Restart your smartphone or tablet if all is ok in Project / Deployment screen.
  24. Patrick PREMARTIN

    TMS Smart Setup is now open source

    Great move for an interesting product. It remains to be seen how the “market” will evolve in relation to other package and dependency management systems available for Delphi or Pascal projects in general.
  25. Patrick PREMARTIN

    Delphi (via Parallels) - blurry fonts on 27 inch monitor

    Can you share a screen capture (taken from the Mac) ? On my M1 I have only 8 gb, Parallels and the VMs don't need more to work. Are you in full screen mode or in "unity" with your VM in a window ?
×